Visual Studio 2008 C++ dependencies
i'm developing a C++ simulation (OpenGL) on t开发者_开发百科op of VS2008 enviroment. My current operating system is Windows Vista. The trouble is that when trying to execute the application on a Windows XP machine, my application crashes because incompatibilities beteween DLL's (namely, msvcrt.dll function entry points ) ... Has anyone experienced such problem?
I seriously doubt that's the real reason it crashes. You probably just didn't deploy the CRT libraries to the target machine. Or deployed the debug build. If this is a single EXE with no DLL dependencies then solve your problem by linking the static version of the CRT. Right-click the project in Solution Explorer, Properties, C/C++, Code Generation, Runtime libraries, select /MTd. Repeat for the Release configuration, now choosing /MT.
search for 'C redistributables' on MSDN. YOu will see a list of all the run time libs you need, make sure you get the debug / non debug and the unicode / ansi choices correct
- Open the Visual Studio Command Prompt.
- Type "depends.exe" and press enter.
- Open the deployable EXE/DLL from depends.
- Write down the list of DLL's needed to run your application.
- Verify that those DLL's are either deployed with your targeted OS version or that you deploy them yourself.
精彩评论