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

2023-07-06 11:01:47 浏览数 (1)

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

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

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

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

可执行文件目录:C:Program Files(x86)Microsoft Visual Studio 10.0VCbin;C:Program Files(x86)Microsoft Visual Studio 10.0VCatlmfcinclude;$(ExecutablePath)

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

引用目录:C:Program Files(x86)Microsoft Visual Studio 10.0VClib;C:Program Files(x86)Microsoft Visual Studio 10.0VCatlmfclib;$(ReferencePath)

库目录:C:Program Files(x86)Microsoft Visual Studio 10.0VClib;C:Program Files(x86)Microsoft Visual Studio 10.0VCatlmfclib;$(LibraryPath)

源目录:C:Program Files(x86)Microsoft Visual Studio 10.0VCatlmfcsrcmfc;C:Program Files(x86)Microsoft Visual Studio 10.0VCatlmfcsrcatl;C:Program Files(x86)Microsoft Visual Studio 10.0VCatlmfcsrcmfcm;C:Program Files(x86)Microsoft Visual Studio 10.0VCcrtsrc;$(SourcePath)

确定即可

0 人点赞