Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Solutions to errors in the execution of cl.exe

Shulou Source: shulou.com Published: 2022-06-02 16:40:21 10月04日 Update

This article will explain in detail about the implementation of cl.exe error solution, Xiaobian feel quite practical, so share to you for a reference, I hope you can read this article after harvest.

Solution to error when executing cl.exe: first open vc interface; then click ["TOOLS"-"Option"-"Directories"] in turn; finally reset "Excludable Files, Include Files..." "or modify environment variables.

Specific issues:

Why is it always "error executing cl.exe"

#includemain(){float a = 12.3,b;double c;b = 12345.678;c = 12345.678;printf("a = %f,b = %f,c =%lf\n",a,b,c);}

Why is this always "error executing cl.exe"

I think it was written wrong when asking questions.

Solution:

You install visual is not installed well, there are two possibilities, one is the wrong path. The environment variable is wrong. I'll tell you in a minute.

You are using VC++ compiler it,

I also had this kind of trouble when I used this one. I didn't know it was troublesome at first, but it lasted for a few hours.

Specific steps:

One: "CL.exe" is VC using a real compiler (compiler), its path in the "VC root directory\VC98\Bin" below,

You can find this application under the corresponding path.

Therefore, the problem can be solved as follows: Open vc interface and click VC"TOOLS"->"Option"

-> Directories Reset paths to Excludable Files, Include Files, Library Files, Source Files. In many cases, it may be different from one drive letter

(For example, your VC is installed in C, but these paths are all in D), and it is OK to change it.

If you followed the initial path to install VC 6.0, the path should be:

executatble files:C:\Program Files\Microsoft Visual Studio\Common\MSDev98\BinC:\Program Files\Microsoft Visual Studio\VC98\BINC:\Program Files\Microsoft Visual Studio\Common\TOOLSC:\Program Files\Microsoft Visual Studio\Common\TOOLS\WINNTinclude files:C:\Program Files\Microsoft Visual Studio\VC98\INCLUDEC:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDEC:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDElibrary files:C:\Program Files\Microsoft Visual Studio\VC98\LIBC:\Program Files\Microsoft Visual Studio\VC98\MFC\LIBsource files:C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRCC:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDEC:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDEC:\Program Files\Microsoft Visual Studio\VC98\CRT\SRC

If you are in a different place, then follow the path (I am in D).

Microsoft Visual Studio\is the same thing.

I suffer greatly from it, reload many times does not work, the above Chinese part for the master to learn from.

Second: if the above function does not work, then you look at the environment variables.

Right-click My Computer-> Properties-> Advanced-> Environment Variables-> PATH Edit-> Delete everything except VC. That's OK.

So my computer can be debugged. No problem. (It's best to save your deleted content in a file just in case.)

About "cl.exe error solution" this article is shared here, I hope the above content can be of some help to everyone, so that you can learn more knowledge, if you think the article is good, please share it to let more people see.

Tags: Paths variables environments methods articles questions compilers selections contents methods more computers interfaces programs compilers always different no good practical Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info vpn Docker NVidia macOS