Using Windows 7 and Visual Studio 2010 I am using the following command line as part of a larger project compilation:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /I"C:\Pr ogram Files (x86)\Windows Installer XML v3.5\sdk\inc" /Zi /nologo /W3 /WX- /O 2 /Oi /Oy- /GL /D WIN32 /D NDEBUG /D _WINDOWS /D USRDLL /D CUSTOMACTIONTEST EXPORTS /D _WINDLL /D _UNICODE /D UNICODE /Gm- /EHsc /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Yc"StdAfx.h" /Fp"obj\Release\FalconViewRegistryCA.p ch" /Fo"obj\Release\" /Fd"obj\Release\vc100.pdb" /Gd /TP /analyze- /errorRep ort:queue stdafx.cpp
This error is reported:
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp .Win32.Targets(57,5): error MSB6006: "CL.exe" exited with code 2.
I get the same error when I compile in the IDE and the line in Microsoft.Cpp .Win32.Targets is a conditional compile:
<CL Condition="'%(ClCompile.PrecompiledHeader)' == 'Create' and '%(ClCompile.ExcludedFromBuild)'!='true'"
I have searched for this issue and the only other issue with this problem said this was due to a path problem. error MSB6006: "CL.exe" exited with code 2
I have done a repair on Visual Studio and still get the same error. This build worked correctly on a Windows XP machine, the errors started when we were upgraded to windows 7. Any help or clarifications would be appreciated