Questions tagged [cl.exe]

cl.exe is a tool that controls the Microsoft C and C++ compilers and linker

cl.exe can be run only on operating systems that support Microsoft Visual Studio.

It is part of the .NET 1.1 SDK.

Read more

126 questions
24
votes
5 answers

cl.exe missing when building native app using GraalVM

I'm trying to build a native application using GraalVM and native-image. An error occures when starting the build process. It seems the cl.exe is missing in the classpath. Like mentioned on the GraalVM website, i've installed the…
tmmls
  • 510
  • 1
  • 4
  • 16
12
votes
1 answer

What is vs2012 cl.exe equivalent to gcc -std=c++11?

Is there a command line option I can pass to VS2012 or VS2013 cl.exe to specify if I want to use C++11 or C++98 syntax? Like GCC's -std=c++11 option.
xyz
  • 870
  • 2
  • 8
  • 16
11
votes
9 answers

How do I install PyAudio on Python 3.7?

I am currently trying to install PyAudio on Python 3.7 but when I use the command "pip install pyaudio", an error message appears: "command 'cl.exe' failed: No such file or directory". I have already tried to modify the PATH but it doesn't work.…
Cyrielle Albert
  • 129
  • 1
  • 2
  • 7
10
votes
1 answer

Visual Studio C++ link with psapi.lib

I have written a C Program which calls the function, GetModuleInformation() which is defined in psapi.h I am using Microsoft Visual Studio C++ command line compiler (cl.exe) for compiling and linking the program. I have included the psapi.h header…
Neon Flash
  • 3,113
  • 12
  • 58
  • 96
10
votes
1 answer

How do I set the version of a DLL built in C, compiled with CL.EXE?

If I compile the source for a C-language DLL with CL.exe, how do I set the file properties including File version Product name, Product version, Copyright and so on, so that I can view these properties in Windows Explorer? In a .NET application…
Cheeso
  • 189,189
  • 101
  • 473
  • 713
8
votes
3 answers

Visual Studio Code MSVC cl.exe not found after installing build tools

After setting up VS Code, installing the build tools and going through the tutorial here: https://code.visualstudio.com/docs/cpp/config-msvc Visual Studio Code is unable to find the cl.exe to compile C++. I replaced the path from the tutorial with…
Krck
  • 187
  • 1
  • 1
  • 8
6
votes
1 answer

a problem with cl.exe and ml.exe

I used cl command to compile a cpp file: cl test.cpp //the generated test.exe can work well then I used another way: cl /Fa /c test.cpp //generate a test.asm assembly file ml test.asm // there failed!!! why? How to solve it? source…
Simon
  • 63
  • 1
  • 7
6
votes
2 answers

visual studio compiler how to specify the include path to build cpp

I am using a batch file to try to build my cpp program using Visual Studio's cl.exe. This is what it contains: "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\cl.exe" /I "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\"…
a1s2d3f4
  • 589
  • 4
  • 7
  • 18
5
votes
2 answers

Capture Visual Studio response file?

I'm having trouble porting a C++ library to Windows Phone via the command line with nmake. The makefile invokes cl.exe and link.exe using Visual Studio's x86_arm tools and has basic recipes. I'm using a Visual Studio Phone project as a reference.…
jww
  • 97,681
  • 90
  • 411
  • 885
5
votes
4 answers

Is there a way to run vcvars32.bat every time I start a cmd?

I'm using cl in cmd and having to run vcvars32.bat every time I open a cmd window is really a pain in the axx. Can anyone offer a way of running it automatically?
Tengyu Liu
  • 1,223
  • 2
  • 15
  • 36
5
votes
2 answers

Is this a compiler bug, or a C language feature?

My environment is Windows XP SP3 + 'Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86'. The process is as follows: F:\workshop\vc8proj\console> type t.c int main(void) { // Do some thing. { int i; …
qstemp
  • 51
  • 2
4
votes
1 answer

does anyone remember the options to CL.EXE from Visual C version 5?

...specifically, the /AL option? I am porting some ancient C (a Freescale nee Motorala M68000 simulator) and I can't find it on MSDN. Google retrieves many non-related links, and the Wayback Internet Archive chokes beyond the "Product Release" page.…
Tarkin
  • 313
  • 2
  • 9
4
votes
3 answers

Windows batch (cmd.exe) command line parameters and string manipulation

Let's consider this FOR loop in a Windows batch script: D:\MiLu\Dev\C++\temp :: type string.bat @ECHO OFF FOR %%a IN (%*) DO ECHO %%a It echoess all the arguments, one by one. Really? D:\MiLu\Dev\C++\temp :: string.bat foo.obj bar.obj…
Lumi
  • 14,775
  • 8
  • 59
  • 92
4
votes
7 answers

Matconvnet error cl.exe not found

I have installed MatConvNet from VLFeat and I am trying to compile it. But as I am trying to run vl_compilenn it shows the following error: vl_compilenn Warning: CL.EXE not found in PATH. Trying to guess out of mex setup. > In…
user7029552
  • 61
  • 1
  • 1
  • 5
4
votes
1 answer

cl.exe hangs indefinitely while being invoked via MSBuild

I am trying to run MSBuild on my (mostly C++) projects (imagine a really humongous code base). Visual Studio 2015 is the toolset in question (Windows 7 SP1 and VS 2015 Update 2). Even with /m:1 (and thereby forcing it to use only one processor) I am…
ForeverLearning
  • 6,352
  • 3
  • 27
  • 33
1
2 3
8 9