What is special about the executables compiled with Visual Studio 11 which results in that the executables cannot be executed on Windows XP?

后端 未结 4 1567
臣服心动
臣服心动 2020-12-05 17:26

I compile my C++ source code with Visual Studio 11 Developer Preview. I statically link to the runtime library.

The resulting executable cannot be executed on Window

4条回答
  •  一整个雨季
    2020-12-05 18:21

    The workaround is to use a different Platform Toolset, which will link a different version of CRT and produce binaries compatible to older operating systems.

    See more here: Target Windows XP in Visual Studio 11 Beta using the Visual Studio 2010 compiler and libraries.

    With v90 toolset your binary will be able to run even in older systems, such as Windows 2000.

    http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-65-69/7444.BlogPic.png

提交回复
热议问题