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.
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.
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:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.