Questions tagged [cl]

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.

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.

301 questions
48
votes
7 answers

Command line warning D9035: option 'Gm' has been deprecated and will be removed in a future release

I am getting the warning message "cl : Command line warning D9035: option 'Gm' has been deprecated and will be removed in a future release" while building my project with Visual Studio 2017 latest update 15.9.2. How to resolve this warning?
Ashish Rathi
  • 1,418
  • 2
  • 13
  • 26
26
votes
5 answers

Google GSutil create folder

How can u create a new folder inside a bucket in google cloud storage using the gsutil command? I tried using the same command in creating bucket but still got an error gsutil mb -l us-east1 gs://my-awesome-bucket/new_folder/ Thanks!
Bongsky
  • 493
  • 3
  • 12
  • 23
25
votes
7 answers

How to find out cl.exe's built-in macros

Does anyone know how could I find out which are cl.exe's builtin/predefined macros? For example for gcc the following command line will list all the compiler's builtin macros gcc -dM -E -
celavek
  • 5,575
  • 6
  • 41
  • 69
18
votes
1 answer

Use 64-bit compiler in Visual Studio

I use Visual Studio 2017. In a project (that I target as x64), I get error : C1060, compiler is out of heap space, and sadly learned there happen to exist a memory limitation for compilation. When monitoring CL.exe, it indeed stop just before…
brahmin
  • 568
  • 1
  • 5
  • 17
10
votes
1 answer

Declaring member function using function type syntax

Just recently I learned that you can declare a function (including methods) using variable-like syntax with function type: using function_type = int (double); // pre-C++11: //typedef int function_type(double); function_type fun_global; struct…
Adam Badura
  • 5,069
  • 1
  • 35
  • 70
9
votes
1 answer

Visual C++ optimization options - how to improve the code output?

Are there any options (other than /O2) to improve the Visual C++ code output? The MSDN documentation is quite bad in this regard. Note that I'm not asking about project-wide settings (link-time optimization, etc...). I'm only interested in this…
Alexander
  • 692
  • 6
  • 17
8
votes
1 answer

What is the difference between conanfile.py, conanfile.txt, conanprofile and settings.yml?

I have been trying to build Conan packages of my project for a week. I have been reading the documentation but there are many points that I'm still confused about. There are 4 files that I think are very…
Farahi
  • 95
  • 1
  • 6
8
votes
1 answer

why does mailx ignore header fields?

I want to send an HTML email. have a plain text file that looks like this: From: "name" To: name@email.com Subject: First Email MIME-Version: 1.0 Content-Type: text/html; charset=us-ascii Content-Disposition:…
Trevor Hickey
  • 36,288
  • 32
  • 162
  • 271
8
votes
1 answer

Warning C4701 is sometimes suppressed when compiling with /RTC1

This piece of code (note the commented line): #include #pragma warning(error: 4701) int main(){ char buffer[1024]; //buffer[0] = 0; void *p; int size = 1; if (size < 2) p = malloc(size); free(p); //…
Georgy Pashkov
  • 1,285
  • 7
  • 11
7
votes
1 answer

IEEE 754: sqrtf() with fesetround(): different results between compilers: 0x42440a72 vs. 0x42440a73

#include #include #include #include int main() { typedef union { uint32_t u; float f; } ufloat; ufloat val; float arg = 2401.999999; int r; r = fesetround(FE_DOWNWARD); val.f =…
pmor
  • 5,392
  • 4
  • 17
  • 36
7
votes
1 answer

gcc and clang throw "no matching function call" but msvc (cl) compiles and works as expected

I have written a small function template that joins different containers in a new container: #include #include #include #include #include namespace impl { template
Timo
  • 9,269
  • 2
  • 28
  • 58
7
votes
3 answers

Force SCons to use 32-bit MSVC compiler on 64-bit Windows

I am trying use cl from Visual Studio 2010 to build the 32-bit version of Mixxx. Mixxx uses SCons to build. My computer is Windows 7 64-bit with too many versions of Visual Studio installed. Following these instructions, I have tried all sorts of…
default.kramer
  • 5,943
  • 2
  • 32
  • 50
6
votes
1 answer

class with friend rather than forward declaration,: which compiler is correct

I have this simple C++ program: #include struct obj { friend int f(int); void m(int x) { std::cout << "f(" << x << ") = " << f(x) << std::endl; } }; int main() { obj o; o.m(21); } int f(int x) { return 2*x; } If I compile…
René Nyffenegger
  • 39,402
  • 33
  • 158
  • 293
6
votes
0 answers

Terminology: Is "CL" identical to "the MSVC compiler"

I am having a hard time to make out whether the command line tool cl.exe is what people refer to when they are talking about "the MSVC compiler". Are the two the same thing or do you use cl to control the compiler?
mrclng
  • 483
  • 2
  • 14
6
votes
1 answer

NVCC - host compiler targets unsupported OS

I've been trying to get CUDA working on my PC. I tried clean (re-)installing the latest drivers and CUDA as well as latest Visual Studio 2017 RC Build Tools. My operating system is Windows 10 (64-bit) build 14393.693, GPU is GTX 1060 6GB (Driver…
Sina Madani
  • 1,246
  • 3
  • 15
  • 27
1
2 3
20 21