I have the following error on fresh windows 8 install with microsoft visual studio ultimate 2013 :
cl : Command line error D8050 : cannot execute 'C:\Program Files (x86)\Microsoft
Visual Studio 12.0\VC\BIN\amd64\c1xx.dll': failed to get command line into debu
g records
The weird thing is that trying to compile in an admin cmd is working.... I tried to change ownership/rights of the VS12 folder but it changes nothing.
cl /Fobin\x64\Release\file.obj /c src\file.cpp
/TP /nologo /MP /GS /W4 /wd4800 /wd4138 /wd4530 /wd4512 /wd4996 /wd4251
/wd4661 /wd4505 /WX- /Gd /Zi /Gm- /Zc:wchar_t /errorReport:prompt /Zc:forScope
/Fplibvideostitch.pch /FS /Fdvc120.pdb /fp:precise /GL /O2 /Oy- /Oi /MD /Ot
/DWIN32 /D_USE_MATH_DEFINES /D_WINDLL /DNOMINMAX /D_CONSOLE /DNDEBUG
"/IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\include"
cl.exe is a tool that controls the Microsoft C++ (MSVC) C and C++ compilers and linker. cl.exe can be run only on operating systems that support Microsoft Visual Studio for Windows. Note. You can start this tool only from a Visual Studio developer command prompt.
cl.exe is usually located at %VCINSTALLDIR%\bin\ . VCINSTALLDIR environment variable is not set by default, but it is being set when you open Visual Studio's Native Tools Command Prompt.
I had this issue with a cleared environment, and it was resolved (at least in part) by setting the TMP environment variable.
I had my %TEMP%
and %TMP%
vars pointing to a directory that contained a $
. Replacing it with an _
solved the issue for me.
I ran into this error after I cleaned up my C drive (deleted temporary files of all sorts). I was able to fix it by re-setting the environment variables for Visual C++ command-line tools. This page was my reference. I was building 64 bit.
Run cmd as admin.
c:\>cd YourVSInstallDir\VC
c:\YourVSInstallDir\VC>vcvarsall.bat amd64
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With