MSCVR110d.dll Missing in Allegro / VS Set Up

775 views Asked by At

So I'm trying to set up an Allegro template by linking everything to a new VS program.

I've downloaded the .cc files from Allegro and followed the installation guide in it's Wiki for setting up with Visual Studio 2010.

The version is 5.0.10.

Upon putting the main source code in my first program and linking everything as per the wiki (bin, include, lib), the program builds fine, however, when you go to debug/run the program in VS, a window pops up with:

This program can't run because msvcr110d.dll missing from your computer.

I'm successfully tested other VS projects using other third party libraries and they still work fine.

What could be the problem?

This S/O question doesn't have an answer.

2

There are 2 answers

2
Didac Perez Parera On

You may download and install the MSVC redistributable: http://www.microsoft.com/es-es/download/details.aspx?id=30679

Anyway, it's not normal that msvcr110d is required instead of msvcr110. That means that the library you are using has been compiled with the debug runtime of the MSVC2012. Check it and choose the right library files.

2
David Heffernan On

The tutorial you are following includes this text:

This tutorial may reference an older version number than what is available on that page. While following the instructions, if you copy and paste something with a version number, be sure to update it to reflect the version you downloaded.

That would indeed appear to be the case. The runtime that the program is trying to link to is the runtime for VS2012. So it seems that the files you downloaded are more recent than the tutorial. The .lib files that you are using are linked against VS2012.

Possible solutions:

  1. Repeat the steps in the tutorial, but use VS2012 rather than VS2010.
  2. Find the old version of the tutorial that has VS2010 .lib files.
  3. Build the entire thing from scratch so that you are not dependent on supplied .lib files that are tied to a specific version of VS.