Error MSB6006 "CL.exe" exited with code -1073741701 - c++

I am trying to work in Visual Studio 2017 but my c++ code is failing to compile. it is giving error
Severity Code Description Project File Line Suppression State
Error MSB6006 "CL.exe" exited with code
-1073741701. Project1 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 423
The program does not contain any complex code. Do I need to download any packages to run the program? I am currently working in Windows 8.1
I first tried in Visual Studio 2019 but it reflected the same error. So I tried in a version lower than this. I, however, have visual studio 10 running perfectly in my system.
#include<iostream>
int main()
{
return 0;
}
//
I expect the code to be compiled.

Related

error in visual studio when using visual GDB debugger

I am building inkscape source code containing cpp files in visual studio. To compile I have used visual gdb(debugger).
by https://wiki.inkscape.org/wiki/Using_Visual_Studio following this link.
But I am facing 3 errors
1.command line action failed in visual gdb.
2.Build has failed.see the output window for more details.
3.MSB3073, makefile target error in makefile

Error building libarchive for c++ Visual Studio 2010 Professional

I am trying to build libarchive for c++ Visual Studio 2010 Professional. Everything seems to be fine, the tests run OK, up until I get the following error:
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code -1073741571.
Build FAILED.
I have googled and searched for this exact error on SO but cannot find anything.
Thank you.

Visual Studio 2013 CL.exe not found

I installed my Visual Studio 2013 Ultimate on my D: Drive (not my windows drive), as i could'nt change it during setup.
So i wanted to continue on a project, and when compiling it says "CL.exe" not found.
I tried the .bat in the /VC/bin folder, and also setting up the PATH variable on my own as some "problem threads" supposed. But nothing helped: still "TRACKER: Fehler TRK0005"
and "C:\Program Files(x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.targets(147,5): error MSB6006: "CL.exe" exited with code 5.
:/
Can someone help me?

CL error with MS Visual Studio 2010, what is it

I am building a project with cmake using ms visual studio. I am getting this error from MS visual studio (2010):
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x64.Targets(146,5): error MSB6006: "CL.exe" exited with code -1073740777
I have not been able to find anything about this error (obv I've googled it), but I can't find a description! I also tried the error lookup tool and it didn't bring anything up.
Any idea what this error means?
I moved the project generation to a different dir (much smaller path) and the error went away, and everything compiled fine. It appears this has to do with the path length and length of the CL command.
This Link was helpful in diagnosing the problem.
Since my original question was "what is this error?" Here is the answer courtesy of #WhozCraig
0xC0000417, equivalent to STATUS_INVALID_CRUNTIME_PARAMETER.

Unable to compile with win sdk 7.1 in visual studio express

This specific project requires me to use the win sdk 7.1 tool set to compile, and I'm currently using vs express 2012. I am unable to compile anything if select Windows7.1SDK as the Platform Toolset, even a hello world program. The error I receive from the compiler is:
Error 1 error MSB6006: "CL.exe" exited with code -1073741515. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.targets 57 5 ConsoleApplication1
The specific line contains:
<CL Condition="'%(ClCompile.PrecompiledHeader)' == 'Create' and '%(ClCompile.ExcludedFromBuild)'!='true'"
Googling was no help, and I have reinstalled the sdk multiple times, as well as reinstalling visual studio express to use vs express 2013.