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
2
votes
1 answer

How do I avoid the "unresolved external symbol _mainCRTStartup" error when using the MSVC toolchain (ex: CL.EXE) from within an MSYS environment?

How do I avoid the unresolved external symbol _mainCRTStartup error when using the MSVC toolchain (ex: CL.EXE) from within an MSYS environment? Details: I started a "VS2013 x64 Native Tools Command Prompt" and the launched C:\msys64\msys2.exe from…
chadjoan
  • 485
  • 3
  • 11
2
votes
1 answer

Compiling with Cython on Windows: missing source filename

I'm trying to compile a hello world example with Cython on Windows 10. I have visual studio 2015 community. Python 3.5.2 My setup.py looks like this: from distutils.core import setup from Cython.Build import cythonize setup ( name='print hello…
squirtgun
  • 629
  • 9
  • 12
2
votes
1 answer

Why the binary produced by clang is larger than that's produced by visual studio

It's just a piece of "hello world" C++ code. #include int main(int argc, char* argv[]) { printf("hello"); return 0; } I compiled the code with clang 3.9. The command is: clang -m32 hello.cpp -o hello.exe, and the target…
user3113626
  • 649
  • 8
  • 17
2
votes
1 answer

How to compile c++ application into x64 mode in Windows 64bit machine?

I've installed Windows SDK 7.1 platform tools, and I opened a terminal named Microsoft Windows 7 x64 Debug Build Environment. Now I want to compile a C++ application (named main.cpp) using the cl.exe command. The compilation command is: cl…
mining
  • 3,557
  • 5
  • 39
  • 66
2
votes
2 answers

Are code blocks inside parenthesis in C/C++ legal and can MSCL compile it?

I have the following code: int x; x = ({ 1; 2; 3; }); printf("%d\n", x); // should be 3 (If you're curious why I would ever write disgusting code like that. The answer is I'm not. I'm writing a generator that outputs C code, and having such a…
Yifan
  • 4,867
  • 5
  • 25
  • 24
2
votes
3 answers

Compile a C / SDL program with Visual C++ 2013 from the Command Line

How do I that? I don't want to use the Visual Studio IDE, yet I want to use the provided compiler (cl.exe) and the Developer Command Prompt for VS2013.
2
votes
2 answers

Compiling multiple files using CL

How would this GNU makefile look for windows (I must use nmake and CL): CC = gcc CFLAGS = -Wall -Wextra -g build: main main: utils.o bucket.o hashset.o main.o utils.o: utils.c utils.h bucket.o: bucket.c bucket.h hashset.o: hashset.c…
Alin Valentin
  • 477
  • 6
  • 15
2
votes
1 answer

Renaming App Failed after following Technical Q&A QA1625

After changing my app's name per Technical Q&A QA1625, I get this error message: clang: error: linker command failed with exit code 1 (use -v to see invocation) ld: file not found:…
Carl Carlson
  • 500
  • 4
  • 17
2
votes
2 answers

Calling protected virtual function of another related object (for proxying)

So a task: we have a third party library, there is a class (call it Base). There is a hidden implementation provided by the library call it Impl. I need to write a Proxy. Unfortunately Base has a protected virtual function fn. So the question is how…
dev_null
  • 1,907
  • 1
  • 16
  • 25
2
votes
2 answers

Unable to get a Window, abort. Kivy error when running an executable compiled from cython and cl

I'm currently learning Kivy 1.8.0 (on Windows 7, Python 3.3.3) by trying the Pong Game exercise. After writing all the code, I wanted to test to compile the code to a .exe. But as PyInstaller is only available for Python2.X and not Python3.X, I've…
PLD
  • 125
  • 1
  • 4
  • 12
2
votes
1 answer

Native cl.exe on Windows 7 64-bit Visual Studio 2013

What editon of Visual Studio 2013 do I need to have a native 64-bit cl.exe(amd64 one, not x86_amd64)? I am running Windows 7 64-bit with Visual Studio 2013 Express (Windows Desktop Development)
Nazar554
  • 4,105
  • 3
  • 27
  • 38
1
vote
1 answer

Why I don’t see speed improvement using std::execution with GCC?

I have such code to test speed improvement using std::execution library on Windows 10: #include #include #include #include #include #include #include #include using…
1
vote
1 answer

Cmake + vs2022 (cl.exe) + ninja + Vulkan2D (C11 Atomics...?)

Context: I'm trying to build the samples in the Vulkan2D repo using the latest version of Visual Studio. Opening the V2D repo in VS2022 and configuring the cmake project works fine, but trying to kick off build of the most basic tutorial…
jholley
  • 53
  • 5
1
vote
0 answers

How to I capture Echo outcome into a variable in BASH script?

We are trying to run a BASH script in IBMi system , one of our use case is to execute a CL program from Bash script that will copy sources from IFS to Library. We need a way to capture copy outcome and then perform some additional business logic in…
Digvijay
  • 41
  • 2
1
vote
0 answers

Pystan 2.19.1.1- C++/MSVC compiler issues- cl.exe failed with exit status 2

Happy Halloween Weekend! Sorry that I have to reach out to ask for your expertise and your guidance regarding this issue I am facing with installing pystan and the C++ configuration. I have followed every single step in this…