error MSB6001: Invalid command line switch for "CL.exe"

  • Thread starter Thread starter hoobler
  • Start date Start date
H

hoobler

Guest
I recently converted a solution and its projects from Visual Studio 2008 to Visual Studio 2010.

The automatic migration wizard did all the magic for me.

When I try to build it through the "devenv ......" command, it fails with

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(147,5): error MSB6001: Invalid command line switch for "CL.exe". Item has already been added. Key in dictionary: 'Path' Key being added: 'PATH'

But, if I run the compile command directly, it compiles correctly.

Any ideas?



Here is the log file...

=================================

Build started 7/27/2010 11:23:20 AM.
1>Project "E:\vs2010\ITSM4DEV.100614A\agents\exchange\build\winnt\tdpexcc.vcxproj" on node 2 (build target(s)).
1>InitializeBuildStatus:
Touching ".\Debug\tdpexcc.unsuccessfulbuild".
CustomBuild:
All outputs are up-to-date.
ClCompile:
e:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\CL.exe /c /I.\debug /I..\..\..\common\winnt\tsmapi611 /I..\..\..\..\shared\protocol /I..\..\..\..\shared\winnt /I..\..\..\..\shared\util /I..\..\..\..\common\ba /I..\..\..\..\common\cu /I..\..\..\..\common\winnt\supincl /I..\..\..\..\common\nls /I..\..\..\..\common\src /I..\..\..\..\common\string /I..\..\..\..\common\thrd /I..\..\..\..\common\ut /I..\..\..\..\common\winnt /I..\..\..\..\common\winnt\dsmutil /I..\..\..\..\common\opt /I..\..\..\..\common\pol /I..\..\..\..\common\com /I..\..\..\..\common\fio /I..\..\..\..\common\filem /I..\..\..\..\common\fs /I..\..\..\..\common\hsm /I..\..\..\..\common\license /I..\..\..\..\common\mem /I..\..\..\common /I..\..\..\common\winnt /I..\..\..\common\nls /I..\..\..\common\thrd /I..\..\..\exchange\common /I..\..\..\exchange\winnt /I..\..\..\exchange\winnt\e2k /I..\..\..\exchange\mapi /I..\..\..\exchange\mapi\winnt /Zi /nologo /W3 /WX- /Od /Oy- /D _DEBUG /D _THREADS /D DSM_STANDALONE_PROGRAM /D DSM_UTILITIES_PROGRAM /D WIN32 /D _CONSOLE /D DSMAPILIB /D W32 /D EXC /D _WIN32_DCOM /D TSMAPIPROXY /D _LONG_LONG /D _VC80_UPGRADE=0x0710 /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo".\Debug/" /Fd".\Debug/vc100.pdb" /Gd /TP /wd4996 /analyze- /errorReport:prompt ..\..\..\..\common\commonlib\agentsEliminator.cpp ..\..\..\..\common\cu\anscmcvt.cpp ..\..\..\..\common\license\almgr.cpp ..\..\..\..\common\license\oemLayer.cpp ..\..\..\..\common\nls\amsglog.cpp ..\..\..\..\common\nls\amsgrtrv.cpp ..\..\..\..\common\nls\ansnls.cpp ..\..\..\..\common\nls\nlsobj.cpp ..\..\..\..\common\nls\nlsstr.cpp ..\..\..\..\common\string\DStringUtils.cpp ..\..\..\..\common\thrd\pkthread.cpp ..\..\..\..\common\ut\ansutil.cpp ..\..\..\..\common\ut\dateutil.cpp ..\..\..\..\common\ut\dstimer.cpp ..\..\..\..\common\ut\globaldata.cpp ..\..\..\..\common\ut\instr.cpp ..\..\..\..\common\ut\logutils.cpp ..\..\..\..\common\ut\numutils.cpp ..\..\..\..\common\ut\pkfile.cpp ..\..\..\..\common\ut\trace.cpp ..\..\..\..\common\ut\traceplus.cpp ..\..\..\..\common\winnt\commutil.cpp ..\..\..\..\common\winnt\pkint64.cpp ..\..\..\..\common\winnt\psStrUtils.cpp ..\..\..\..\common\winnt\psdate.cpp ..\..\..\..\common\winnt\psdateutil.cpp ..\..\..\..\common\winnt\psfile.cpp ..\..\..\..\common\winnt\psfutil.cpp ..\..\..\..\common\winnt\psnls.cpp ..\..\..\..\common\winnt\psstr.cpp ..\..\..\..\common\winnt\psthread.cpp ..\..\..\..\common\winnt\psutil.cpp ..\..\..\..\common\winnt\winvers.cpp ..\..\..\..\shared\util\tsmcrc.cpp ..\..\..\common\adsmutil.cpp ..\..\..\common\agtlog.cpp ..\..\..\common\agtmem.cpp ..\..\..\common\agttrc.cpp ..\..\..\common\baseapi.cpp ..\..\..\common\basedata.cpp ..\..\..\common\baseeri.cpp ..\..\..\common\buffring.cpp ..\..\..\common\consumer.cpp ..\..\..\common\dsmapi.cpp ..\..\..\common\dsmcperi.cpp ..\..\..\common\dsmqberi.cpp ..\..\..\common\dsmqeri.cpp ..\..\..\common\dsmqferi.cpp ..\..\..\common\dsmqseri.cpp ..\..\..\common\ffrc.cpp ..\..\..\common\parseutl.cpp ..\..\..\common\pcm.cpp ..\..\..\common\producer.cpp ..\..\..\common\tdpcommutil.cpp ..\..\..\common\tdpthread.cpp ..\..\..\common\textstor.cpp ..\..\..\common\vssproxy.cpp ..\..\..\common\winnt\dsmapid.cpp ..\..\..\common\winnt\mngdcapUtils.cpp ..\..\..\common\winnt\psagtutl.cpp ..\..\..\common\winnt\pssrvuts.cpp ..\..\..\common\winnt\pstdpthread.cpp ..\..\..\common\winnt\pstime.cpp ..\..\..\common\winnt\registry.cpp ..\..\..\common\winnt\tdppkfile.cpp ..\..\clc\clcstatu.cpp ..\..\clc\tdpexcc.cpp ..\..\common\agtoptions.cpp ..\..\common\backexch.cpp ..\..\common\backup.cpp ..\..\common\backupsg.cpp ..\..\common\errormsg.cpp ..\..\common\exceri.cpp ..\..\common\excfgeri.cpp ..\..\common\exclstut.cpp ..\..\common\excqberi.cpp ..\..\common\excqeri.cpp ..\..\common\excqferi.cpp ..\..\common\inactiva.cpp ..\..\common\mbhistory.cpp ..\..\common\parser.cpp ..\..\common\pcmutils.cpp ..\..\common\restexch.cpp ..\..\common\restore.cpp ..\..\common\restorsg.cpp ..\..\mapi\IPCClient.cpp ..\..\mapi\MAPIFacade.cpp ..\..\mapi\MAPIFilter.cpp ..\..\mapi\MAPIFrontEnd.cpp ..\..\mapi\mapiactivity.cpp ..\..\mapi\mapiappointment.cpp ..\..\mapi\mapicontact.cpp ..\..\mapi\mapidesc.cpp ..\..\mapi\mapientryid.cpp ..\..\mapi\mapifolder.cpp ..\..\mapi\mapimailbox.cpp ..\..\mapi\mapimessage.cpp ..\..\mapi\mapimessagestore.cpp ..\..\mapi\mapipersonalfolder.cpp ..\..\mapi\mapipublicfolder.cpp ..\..\mapi\mapitask.cpp ..\..\winnt\clcsignl.cpp ..\..\winnt\e2kapidl.cpp ..\..\winnt\psexcut2.cpp ..\..\winnt\psexcuts.cpp ..\..\winnt\pspcmuts.cpp /AI ../../../exchange/reflibs
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(147,5): error MSB6001: Invalid command line switch for "CL.exe". Item has already been added. Key in dictionary: 'Path' Key being added: 'PATH'
1>Done Building Project "E:\vs2010\ITSM4DEV.100614A\agents\exchange\build\winnt\tdpexcc.vcxproj" (build target(s)) -- FAILED.

Build FAILED.

Time Elapsed 00:00:00.23

Continue reading...
 
Back
Top