This error occurs in C/C ++: spawning cl.exe error spawning link.exe
A lot of people say it is the starting Question of the setup. I think it is caused by the absence of the cl.exe‑link.exe file in the installation environment.
“Cl.exe”and “link.exe "are the true compilers and connection programs used by VC. Their paths are under" VC root directory/vc98/bin, you can find the application in the corresponding path.
Rename Cl. EXE. An error occurred while compiling the result. The error is as follows.
Compiling...
Error spawning cl.exe
It can be explained to some extent that the Compiling Program is cl. EXE,Compiling in the VC integration environment is completed by calling Cl. EXE with certain compilation options.
Rename link. EXE. Result Link error. The error is as follows.
Linking...
Error spawning link.exe
It can be explained to some extent that the link program is Link. EXE,Links in the VC integration environment are also completed by calling link. EXE with certain link options.
After installing VC 6.0, many people may encounter the "compiling..., error spawning cl.exe" error after clicking "compile" or "build. Many people choose to reinstall it. In fact, this problem is often caused by path settings,
Choose VC tools> Option> Directories) "reset the path of" excutable fils, include files, library files, source files. In many cases, it may be different from a drive letter (for example, if your VC is installed in C, but all these paths are in d). It will be okay if you change it.
If you install vc6.0 in the initial path, the path should be:
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/CRT/src
If you install it on another disk, you can just change it based on the path.
The key is that Microsoft Visual Studio/should follow the same things.