Error spawning link.exe cmdcl.exe in VC

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.