Cl.exe Code Repeat Error Code D8050

I have the following error while updating Windows 8 using Microsoft Visual Studio 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 strange thing is that an attempt to compile in the admin cmd works ... I tried to change the ownership / rights to the VS12 folder, but did not change anything.

 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" 
+6
source share
4 answers

I had a problem with a cleaned environment and it was resolved (at least in part) by setting the TMP environment variable.

+7
source

I encountered this error after I cleaned up my C drive (deleted temporary files of all kinds). I was able to fix this by resetting the environment variables for Visual C ++ command-line tools. This page was my link. I built 64 bits.

Run cmd as admin.

 c:\>cd YourVSInstallDir\VC c:\YourVSInstallDir\VC>vcvarsall.bat amd64 
+3
source

I had %TEMP% and %TMP% vars pointing to a directory containing $ . Replacing it with _ solved the problem for me.

+1
source

TMP was my problem too. I was getting the same error code from cl. Google found this solution and, voilà! I just started using binaries from MSVS 2015 Express for desktop on the new 8.1 system. I run my C assemblies from Eclipse Mars. Older project code installed TMP and TEMP in a (non-existent) directory. As soon as I fixed them, the cl compiler worked fine.

0
source

Source: https://habr.com/ru/post/977174/


All Articles