Cl.exe 返回错误代码 D8050 [英] Cl.exe returing error code D8050

查看:29
本文介绍了Cl.exe 返回错误代码 D8050的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 Microsoft Visual Studio Ultimate 2013 全新安装 Windows 8 时出现以下错误:

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

奇怪的是,尝试在管理员 cmd 中进行编译是有效的....我尝试更改 VS12 文件夹的所有权/权限,但没有任何更改.

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"

推荐答案

我在清理环境时遇到了这个问题,并且通过设置 TMP 环境变量解决了(至少部分).

I had this issue with a cleared environment, and it was resolved (at least in part) by setting the TMP environment variable.

这篇关于Cl.exe 返回错误代码 D8050的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆