Error building libarchive for c++ Visual Studio 2010 Professional - c++

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.

Related

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

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.

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.

error PRJ0002 : Error result -1073741515 returned from 'C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\cl.exe'

I am using VS2008. (C++ code). I am getting the error when compiling:
error PRJ0002 : Error result -1073741515 returned from 'C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\cl.exe'
I tried all the options available in net including one of the stackoverflow link
Visual Studio error confusion + help please
Tried shortening the path of my source solution by placing directly inside C drive.
Tried Removing any VS plugins. Tools -> Addin Manager.
My codebase is fine because the same solution is compiling fine on other machines. When I copied the solution to a particular m/c I am getting this error.
It has custom build steps, post build steps. But they are all correct because its working on other computers.
0xC0000135 (hex -1073741515) can be found in NtStatus.h
Its meaning is STATUS_DLL_NOT_FOUND. Try to look on your cl.exe with Depends
Have you tried resetting your settings of Visual Studio? It is available in Tools->Import and Export Settings. Setting it to Visual C++ Development Settings might do the trick. I know it have helped others with the same problem.
I fixed it by adding this path to the environment PATH variable:
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE
some of the dependencies of the cl.exe are lying in this directory, which were unresolved.