简体   繁体   中英

VC ++ express, how do I fix this error?

I have experience programming in C#, but I'm taking a C++ class this semester, and I'm writing my second project, but I keep getting this error when I try to build a debug configuration of my program.

My build log is below, any ideas on what's going on? I'm at a loss.

Thanks everyone!

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 ==========

微软将杀毒软件归咎于类似案件。

You should look at the buildlog.htm file that is given in the build output. It will give you more (useful) information about what has happened.

尝试将AV设置为忽略项目目录而不是VC ++目录。

Project : error PRJ0002 : Error result 31 returned from 'C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\bin\\mt.exe'.

Faced the same issue Cleaning the rebuilding solved it.

I turned off the Microsoft Security Essentials and the problem is gone. Strange that it only happened for the debug configuration.

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