关于vs编译错误CL.exe已退出的解决方案

IDE问题,VS2010突然无法编辑C++项目,会报错误_30_error MSB6006: “CL.exe”已退出,代码为 -1073741701

 

这个问题是,我也碰到了,你改一下设置就好了,一劳永逸

随便打开一个项目,点击"视图"->属性管理器->Debug |win32 ->双击Microsoft.Cpp.Win32.User

左边有个VC++目录,依次设置

可执行文件目录:C:\Program Files(x86)\Microsoft Visual Studio 10.0\VC\bin;C:\Program Files(x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include;$(ExecutablePath)

包含目录:C:\Program Files(x86)\Microsoft Visual Studio 10.0\VC\include;$(IncludePath)

引用目录:C:\Program Files(x86)\Microsoft Visual Studio 10.0\VC\lib;C:\Program Files(x86)\Microsoft Visual Studio 10.0\VC\atlmfc\lib;$(ReferencePath)

库目录:C:\Program Files(x86)\Microsoft Visual Studio 10.0\VC\lib;C:\Program Files(x86)\Microsoft Visual Studio 10.0\VC\atlmfc\lib;$(LibraryPath)

源目录:C:\Program Files(x86)\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc;C:\Program Files(x86)\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl;C:\Program Files(x86)\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfcm;C:\Program Files(x86)\Microsoft Visual Studio 10.0\VC\crt\src;$(SourcePath)

确定即可

你可能感兴趣的:(关于vs编译错误CL.exe已退出的解决方案)