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

Return dsply message from a rpgle pgm to a cl variable

I have a cl program thats call rpgle program. The rpgle program produces a dsply "message" I want to set the dsply message as a variable in the cl program used to call the rpgle pgm. What cl command to retrieve the dsply message to a variable?
As4rikru
  • 35
  • 3
-1
votes
2 answers

Export a CSV file from AS400 to my pc through Cl program

I want to export a database file that is created through a query, from the AS400 machine to my pc in the form of a csv file. Is there a way to create that connection of the AS400 and my pc through a cl program? An idea of what I want to do can be…
Alkis Ko
  • 99
  • 1
  • 12
-1
votes
2 answers

Issue with vcvars32.bat when trying to use cl Visual Studio command for command line build via the system() function in a c++ program

I'm trying to compile a generated cpp file from within another c++ program. To begin (to see if the cl command works) I'm trying to use the Visual Studio command line build from the c++ program like this: command("cl"); Since the c++ command…
-1
votes
1 answer

cout fails to give output probably due to inline assembly

I am using Visual Studio 2019 Developer Command Prompt. The inline assembly code is simple division and remainder. There is no error in compilation using the command cl /EHsc filename.cpp. Absolutely nothing is displayed on the screen. It takes up…
-1
votes
1 answer

Howo to generate a seperate file for masm assembly using cl Preprocess

I have a c/c++ .h file (okay .h implies c). I have a conditional #ifdef block. In one case, the block prepares statements for input into masm. The second code block is for use in the C/C++ build. The cl command I am playing around with is as…
-1
votes
1 answer

Code compiled with cl hangs too long on the first run

I compile my C++ code with cl. Then when I try to run it, it hangs for ~10 seconds, then runs. But this only happens on the first run after the compilation process. The subsequent calls run without any problems. But if I compile the code again, then…
-1
votes
1 answer

How to build the project to specific folder with visual studio command line tools?

I've got this simplified folders structure for c++ project named project_name. project_name -build -headers -sources -resources If I do cl /EHsc /W4 sources/source1.cpp sources/source2.cpp /link /out:project_name ... it creates…
ampawd
  • 968
  • 8
  • 26
-1
votes
2 answers

cpp File not compiling with cl, but compiles just fine inside Visual Studio

I'm having an issue where the following code can't be compiled using CL (VS CMD). Instead of Compiling, it gives me Error LN2019. Compiling the same Code inside VS, compiles without errors. #include LRESULT CALLBACK MainWindowCallback(…
kazaamjt
  • 121
  • 1
  • 7
-1
votes
1 answer

How can we improve SSL handshake to increase the security?

During SSL handshake, the server send the client its(server's) public key and then client creates a session key and encrypt it with the server's public key and send it to the server. The server then decrypt the message with its private key and…
-1
votes
1 answer

Visual Studio Compiler and recursive Make

I've got a really scary error message while using the visual studio compiler with recursive make. This is my setup: Top level Makefile: .PHONY: test test: $(MAKE) -C subdir Makefile in subdir: .PHONY: all all: cl.exe /nologo /c…
Kevin H. Klein
  • 403
  • 1
  • 5
  • 14
-1
votes
1 answer

Linker error of unused variable and function

I have written following test program int proc1(); extern int globalvar; int func1 () { return globalvar + 1; } int func2() { return proc1()+3; } int main() { return 0; } As you can see that this program is not doing anything.…
doptimusprime
  • 9,115
  • 6
  • 52
  • 90
-2
votes
3 answers

How to create undescriped file length more than 32000 in as400

Actually am trying to create fixed length file which length is more than 32000,If not please help me to create How to create that. please find below system message. Cause . . . . . : The numeric value specified parameter RCDLEN, which is defined…
Prawin
  • 11
  • 4
-2
votes
1 answer

‘memcpy’ was not declared in this scope when using gcc compiler

Actually I'm trying to compile a c/c++ project with mingw. The same project is actually compiled with visual studio compiler. For this purpose, I have written a makefile and everything works so far. During compiling I get error regarding functions…
JohnDoe
  • 825
  • 1
  • 13
  • 31
-3
votes
2 answers

I found a base64 decoder written in C. It works correctly when I compile it with GCC. But it went wrong with cl.exe. Why?

/** * Copyright (c) 2006-2018 Apple Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *…
Zmz
  • 3
  • 2
-3
votes
1 answer

Prettify compiling C++ from Command Line

I'm playing with compiling C++ from native Windows CMD via VS 2017 compiler (vsvarsall.bat setup). Is there any way to reduce the output of cl command, like Microsoft rigths for compiler and linker? Also, offtop question: is it possible to compile…
Alexey S. Larionov
  • 6,555
  • 1
  • 18
  • 37
1 2 3
20
21