Show whole topic Jan 06, 2011 11:26 pm
Eiko Offline
Moderator, Developer
Registered since: Aug 03, 2007
Location: -


Subject: Re: Building MAXR with Visual Studio 2010
It's not really a mistake. There are two possibilities to link the c++ runtime (crt) dlls.

1) dynamic linking, so that the dlls have to be present at the computer where you want to run the application. This is the case, when VS is installed on the pc. So the application runs fine on every computer with VS installed. When it is not installed, you have to provide the dlls in an installation routine or copy them manually. This is what you have done.

2) The second method is to link the crt statically, to get rid of the dependence on the msvc dlls. But that's not very trivial. You have to recompile every dll, against which maxr links, with statically linked crt. And also the SDL sources need some changes, to avoid a few memory runtime errors.

I really suggest to use the first method and copy the dlls, unless you want to build a release version Wink