Visual Studio 2013 CL.exe not found - c++

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?

Related

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.

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.

The program can't start because MSVCP90D.dll is missing from your computer

Windows 7 x64; Visual Studio 2005-2012;
The Visual Studio 2012 was installed at my computer at first. But now I need the 2005, 2008, and 2010 too. I uninstalled the 2012 version (for the problems avoiding) and instal all in ascending order (with their SP): 2005, 2008, 2010, 2012.
I wrote test project in VS 2008 and tried compile it (Debug|x64 configuration), but I got an error in the "Error List" window:
Error result 1 returned from 'C:\Windows\system32\cmd.exe'.
But I see the exe file was created... If I try run it I get an error message:
The program can't start because MSVCP90D.dll is missing from your computer. Try reinstalling the program to fix this problem.
But the MSVCP90D.dll file are exists actualy into the "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\redist\Debug_NonRedist\x86\Microsoft.VC90.DebugCRT" and "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\redist\Debug_NonRedist\amd64\Microsoft.VC90.DebugCRT" directories.
Ok I change the project's property. I set the "Multi-threaded Debug (/MTd)" value instead of "Multi-threaded Debug DLL (/MDd)" for the "C/C++->Code Generation->Runtime Library" property.
But I get the same error in the "Error List" window yet. I see the exe file was created again... If I try to run this exe file, I see all works fine now.
Why I get an error still in the "Error List"? Why I need to change that property? How can I solve this problem (an error message)?
There are several Google answers to query "Error result 1 returned from 'C:\Windows\system32\cmd.exe'". First of them (http://social.msdn.microsoft.com/Forums/vstudio/en-US/871103ca-6015-40ce-8a59-92e47ce68aeb/error-prj0002-error-result-1-returned-from-cwindowssystem32cmdexe) suggests that you could disable AutoRun feature of the console. If you have AutoRun value in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor registry key then rename it to something else, and see if the error is gone.
Apparently if there is a COLOR command in the AutoRun registry value then the error appears, but if AutoRun value has no COLOR command then there is no error. So you can have the AutoRun value in the registry, just remove the COLOR command from it to fix the problem.
Maybe this error has nothing to do with the other error ("missing" MSVCP90D.dll), but let's fix one thing at a time.

Unable to build my code using Microsoft Visual Studio 2010

I'm using Microsoft Visual Studio 2010. It was going fine until this morning when I try to build my code. It gave me this weird error:
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms
\Win32\Microsoft.Cpp.Win32.Targets(147,5)
:error` MSB6006: "CL.exe" exited with code 1073741855.
I have no idea why this error is occuring. I need help please.
I am using Window 7.
1073741855 is 0x0x4000001f, and 0x1f is decimal 31, and 31 is ERROR_GEN_FAILURE. In other words, something is hosed and VS isn't going to tell you what it is.
Go to Control Panel/Programs and Features, right click, Uninstall/Change, Repair/Reinstall. If that doesn't fix the problem, I would uninstall VS completely and reinstall.
For those of you looking to avoid the (timely) process of uninstalling and reinstalling Visual Studio, a simple restart worked for me. I have noticed this happens more often when I have multiple Visual Studio windows open.

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.