Application has failed to start … application configuration is incorrect - VC++ 2005 Runtime Problem

前端 未结 4 1456

We moved our Visual C++ 2003 solution to Visual 2005 and now we have problems deploying to clean XP machines.

Our solution has a DLL project and a command line executabl

4条回答
  •  南旧
    南旧 (楼主)
    2021-02-09 08:06

    You don't really need the Microsoft's VC80 C Run-Time Library. It's a mess.

    Instead, relink your program with /MT option, which static links the c run-time library(libcmt.lib) or C++ Standard Library. To set this via the project properties, go to

    C/C++ -> Code Generation -> Runtime Library: Multi-threaded (/MT)
    

    If it doesn't compile, you may want to add this option as well (/NODEFAULTLIB:)

    Linker -> Input -> Ignore Specific Library: msvcrt.lib
    

    See the link options from http://msdn.microsoft.com/en-us/library/abx4dbyh(VS.80).aspx

提交回复
热议问题