简体   繁体   中英

Visual Studio 2008 C++ dependencies

i'm developing a C++ simulation (OpenGL) on top 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.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM