我有使用C#编程的经验,但是这个学期我正在学习C ++课程,我正在编写第二个项目,但是当我尝试构建程序的调试配置时,我一直收到此错误。
我的构建日志如下,有关于发生了什么的任何想法?我很茫然。
谢谢大家!
1>------ Rebuild All started: Project: Project_2, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'Project_2', configuration 'Debug|Win32'
1>Compiling...
1>main.cpp
1>Linking...
1>LINK : C:\Users\Alex\Documents\Visual Studio 2008\Projects\Project_2\Debug\Project_2.exe not found or not built by the last incremental link; performing full link
1>Embedding manifest...
1>Project : error PRJ0002 : Error result 31 returned from 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\mt.exe'.
1>Build log was saved at "file://c:\Users\Alex\Documents\Visual Studio 2008\Projects\Project_2\Project_2\Debug\BuildLog.htm"
1>Project_2 - 1 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
答案 0 :(得分:5)
微软指责antivirus处理类似案件。
答案 1 :(得分:2)
您应该查看构建输出中给出的buildlog.htm文件。它将为您提供有关已发生事件的更多(有用)信息。
答案 2 :(得分:2)
尝试将AV设置为忽略项目目录而不是VC ++目录。
答案 3 :(得分:1)
项目:错误PRJ0002:错误结果31从' C:\ Program返回 Files \ Microsoft SDKs \ Windows \ v6.0A \ bin \ mt.exe'。
面对同样的问题清理重建解决了它。
答案 4 :(得分:0)
我关闭了Microsoft Security Essentials,问题就消失了。 奇怪的是,它只发生在调试配置中。