cl.exe

CL.exe crashes in Visual Studio 2012

瘦欲@ 提交于 2019-12-11 05:57:20
问题 I installed Visual Studio 2012 recently and it appears that I'm unable to build my solutions properly as the IDE is reporting a crash in CL.exe. The only error it's reporting is error MSB6006: "CL.exe" exited with code 1073741855 . In addition to this, I'm getting a lot of warnings concerning Microsoft.CppCommon.targets . Lots of the errors are of the form "The 'x' attribute is not declared." This might seem like a stupid question, but I cannot understand why it's doing this. According to the

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

蹲街弑〆低调 提交于 2019-12-10 22:37:27
问题 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\" "%1" /Fe "%1.exe" I want to the compiler to include iostream from the include folder and build my .cpp (%1) as %1.exe. Instead, I get: Microsoft (R) C/C++ Optimizing Compiler Version 17.00.60610.1 for x86 Copyright (C) Microsoft Corporation. All

MSVC10 /MP builds not multicore across folders in a project

冷暖自知 提交于 2019-12-10 17:43:28
问题 I'm hoping someone points out something wrong or a workaround for what we are experiencing. When compiling a project with /MP it appears that only files in the same folder are compiled concurrently. I used process explorer to swipe the command line and confirm the behavior. Project filters seem to have all no impact on the what gets compiled concurrently. Project structure on disk: Folder\ project.vcxproj source\ foo.cpp foo1.cpp other_folder\ bar.cpp bar1.cpp bar3.cpp Initial process tree:

Matconvnet error cl.exe not found

给你一囗甜甜゛ 提交于 2019-12-10 11:21:28
问题 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 vl_compilenn>check_clpath (line 580) In vl_compilenn (line 413) 'cl.exe' is not recognized as an internal or external command, operable program or batch file. Error using vl_compilenn>check_clpath (line 591) Unable to find cl.exe Error in vl_compilenn (line 413) check

cl.exe hangs indefinitely while being invoked via MSBuild

那年仲夏 提交于 2019-12-07 10:58:38
问题 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 finding some completely random project constantly hanging at the compile phase. For example, when this issue happens, if I look at the offending project and the files it comprises of, I can see that the .obj files have been created successfully

Visual Studio C++ link with psapi.lib

試著忘記壹切 提交于 2019-12-06 21:32:05
问题 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 file: #include <psapi.h> when I try to compile using: cl program.c It generates the object file, however fails during the linking stage with the error: program.obj : error LNK2019: unresolved external symbol _GetModuleInformation@16 ref erenced in

Matconvnet error cl.exe not found

情到浓时终转凉″ 提交于 2019-12-06 07:15:52
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 vl_compilenn>check_clpath (line 580) In vl_compilenn (line 413) 'cl.exe' is not recognized as an internal or external command, operable program or batch file. Error using vl_compilenn>check_clpath (line 591) Unable to find cl.exe Error in vl_compilenn (line 413) check_clpath(); % check whether cl.exe in path install visual studio community edition ( it's the free edition

cl.exe hangs indefinitely while being invoked via MSBuild

早过忘川 提交于 2019-12-05 16:54:07
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 finding some completely random project constantly hanging at the compile phase. For example, when this issue happens, if I look at the offending project and the files it comprises of, I can see that the .obj files have been created successfully for every translation unit. However the system just never moves on to the link phase. I see two

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

偶尔善良 提交于 2019-12-05 08:50:40
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? From cmd /? : If /D was NOT specified on the command line, then when CMD.EXE starts, it looks for the following REG_SZ/REG_EXPAND_SZ registry variables, and if either or both are present, they are executed first. HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun and/or HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun You therefore could add vcvars32.bat to one of those AutoRun registry values to have it

Visual Studio C++ link with psapi.lib

随声附和 提交于 2019-12-05 02:45:45
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 file: #include <psapi.h> when I try to compile using: cl program.c It generates the object file, however fails during the linking stage with the error: program.obj : error LNK2019: unresolved external symbol _GetModuleInformation@16 ref erenced in function _main program.exe : fatal error LNK1120: 1 unresolved externalsprogram.obj : error LNK2019: