开发者

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


  1. Open the Visual Studio Command Prompt.
  2. Type "depends.exe" and press enter.
  3. Open the deployable EXE/DLL from depends.
  4. Write down the list of DLL's needed to run your application.
  5. Verify that those DLL's are either deployed with your targeted OS version or that you deploy them yourself.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜