views:

760

answers:

4

Hi there,

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 ==========
+2  A: 

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.

brainiac
The error has disappeared, but for future reference I will definitely check the build log, coming from C#, I didn't think about this. Thank you.
Alex
+2  A: 

Microsoft blames antivirus for a similar case.

Arve
hmm...interesting, I'll take a look at this.
Alex
Actually, this could be the problem, I just told my Antivirus to ignore my VC++ directory. We'll see how it goes.
Alex
A: 

Did you try searching the interwebs?

I see tons of people complaining about this, it seems to translate to "file in use"

Terry Mahaffey
+1  A: 

try setting your AV to ignore your project directories instead of VC++ directory.

Guilherme Dellagustin