Show whole topic Jan 06, 2012 1:20 pm
alzi Offline
Developer, Moderator
Registered since: Aug 12, 2007
Location: Ditzingen (nahe Stuttgart)


Subject: Re: Couple of questions
Quote by ness:
Quote by Nix:

Oh one question: my compiled maxr.exe works fine on my comp, but when I sent it to my friend it didn't work because of some missing MSVCP100D.dll libraries. Alzis SVN exe worked fine on him. What's different on my compiled .exe?

You should have build in debug mode. Try to rebuild in release Smiling

It's not about debug or release here. This comes because you link your application against the dynamic Visual C++ runtime libraries but any other computer that has not installed Visual Studio does not have them. There are two ways of fixing this: The first one is to install the runtime on the computer of your friend. You can get it here.
The other way is to link your application against the runtime statically (that's what I do). To do this you have to go into the preferences of your project, select C/C++ -> Code Generation and then change "Runtime Library" from "Multithreaded Debug DLL" to the same without "DLL" (and for the release mode of course without Debug). The problem with this is that all the libraries you use have to be build with the same setting, what for maxr means that you may have to rebuild the SDL libraries as well.
Albert Ziegenhagel
This post has been edited 1 times. Last edit on Jan 06, 2012 1:21 pm by alzi.