编写C语言程序时,没有任何错误,但运行结果显示C1.exe找不到,是怎么回事?

2024-11-30 23:52:36
推荐回答(1个)
回答1:

是CL.exe文件找不到吧 。你使用的是VC6?是不是下载的绿色版本啊?
1)清注册表,把所有VC6相关的内容都清掉
2)重启VC6以后,Tools->Options->Directories
executatble files: (里面会有很多其它东西,把下面4项按照顺序放在其它东西的最前面即可)
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 (没看错,不是里面的SRC,就是INCLUDE。。。)
C:\Program Files\Microsoft Visual Studio\VC98\CRT\SRC