以前,此Visual C ++项目在Visual Studio 2005中成功运行 在Visual Studio 2010中,我收到链接错误,请参阅下面的
1> Generating Code...
1>Lib:
1> mStaticLibr.vcxproj -> C:\Users\AlexN\workspace\ap\ap- 3a4857c51ff6\development\allProjects\Debug\mStaticLibr.lib
1>FinalizeBuildStatus:
1> Deleting file "Debug\mStaticLibr.unsuccessfulbuild".
1> Touching "Debug\mStaticLibr.lastbuildstate".
1>
1>Build succeeded.
1>
1>Time Elapsed 00:01:10.44
2>------ Rebuild All started: Project: fnd_p, Configuration: Debug Win32 ------
2>Build started 7/20/2013 12:08:59 PM.
2>_PrepareForClean:
2> Deleting file "Debug\fnd_p.lastbuildstate".
2>InitializeBuildStatus:
2> Creating "Debug\fnd_p.unsuccessfulbuild" because "AlwaysCreate" was specified.
2>ClCompile:
2> FND_P.CPP
2>Manifest:
2> Deleting file "Debug\fnd_p.exe.embed.manifest".
2> C:\ Program Files(x86)\ MSBuild \ Microsoft.Cpp \ v4.0 \ Platforms \ Win32 \ Microsoft.Cpp.Win32.Targets(392,5):错误MSB6006:“link.exe”已退出代码为-1073741515。 2 - ; 2> Build FAILED。
答案 0 :(得分:1)
关于禁用整个程序优化的提示有帮助。但是,对于这种特殊情况,需要设置" Generate Manifest"在链接器/清单文件选项中为否