C++中编译一直出现错误Compiling...Error spawning cl.exe路径是(D:尀),但下面的都显示在E盘,改不掉怎么

2024-12-26 18:45:04
推荐回答(4个)
回答1:

照下面这个方法修改一下吧,以前我也是这个问题,不过后来解决了。
方法如下:
打开vc界面 点击VC“TOOLS(工具)”—>“Option(选择)”
—>“Directories(目录)”重新设置“Excutable Fils、Include Files、
Library Files、Source Files”的路径。很多情况可能就一个盘符的不同
(例如你的VC装在C,但是这些路径全部在D),改过来就OK了。

如果你是按照初始路径安装vc6.0的,路径应为:
executatble files:
C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin
C:\Program Files\Microsoft Visual Studio\VC98\BIN
C:\Program Files\Microsoft Visual Studio\Common\TOOLS
C:\Program Files\Microsoft Visual Studio\Common\TOOLS\WINNT

include files:
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE

library files:
C:\Program Files\Microsoft Visual Studio\VC98\LIB
C:\Program Files\Microsoft Visual Studio\VC98\MFC\LIB

source files:
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\ATL\SRC

回答2:

s,按顺序添加以下三项:
\Microsoft Visual Studio\VC98\INCLUDE
\Microsoft Visual Studio\VC98\MFC\INCLUDE
\Microsoft Visual Studio\VC98\ATL\INCLUDE

回答3:

改路径,tool/option>di…>in…,据推测!

回答4:

重新安装