error MSB3073::VCEnd”已退出,代码为 4

本文详细解析了在使用VS2010时遇到的错误提示,该错误源于项目根目录中含有非英文字符。通过重命名项目根目录为全英文名称,可以有效解决此问题,确保项目正常运行。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

(以下为vs2010下出现的情况及解决方案)

错误显示:

 

错误原因:

 

表面上看是“属性-配置属性-生成事件-后期生成事件-命令行”出现了问题,其实是你的项目的根目录中含有汉字或者其他敏感符号(比如你的项目代码存放在:“E:\code\备份”目录下,根目录做好是全英文)。

 

解决方案:

重命名项目的根目录,最好为全英文的(例如“E:\code\Backup”)。

1>xt_lib_uf.lib(xt_windows.obj) : warning LNK4099: 未找到 PDB“xt_lib_uf.pdb”(使用“xt_lib_uf.lib(xt_windows.obj)”或在“F:\code\CncAutoDrlHole\find_std_xuti_subtract\find_std_xuti_subtract\x64\NX12\xt_lib_uf.pdb”中寻找);正在链接对象,如同没有调试信息一样 1>find_std_xuti_subtract.vcxproj -> F:\code\CncAutoDrlHole\find_std_xuti_subtract\find_std_xuti_subtract\x64\NX12\find_std_xuti_subtract.dll 1>find_std_xuti_subtract.vcxproj -> F:\code\CncAutoDrlHole\find_std_xuti_subtract\find_std_xuti_subtract\x64\NX12\find_std_xuti_subtract.pdb (Full PDB) 1>The MSVCDir environment variable is not defined 1>This variable is necessary only when using uflink or starting up Studio 1>from this window. You must modify the ufvars.bat file to define this. 1>Error signing application, F:\code\CncAutoDrlHole\find_std_xuti_subtract\find_std_xuti_subtract\x64\NX12\find_std_xuti_subtract.dll. 1> Application has not been compiled with NXSigningResource.cpp. 1>Checking for the presence of c_p_p_author license. 1>Signing files... 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: 命令“call "E:\UG\NX12.0\ugii\ugiicmd.bat" "E:\UG\NX12.0" 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: "E:\UG\NX12.0\NXBIN\signcpp.exe" "F:\code\CncAutoDrlHole\find_std_xuti_subtract\find_std_xuti_subtract\x64\NX12\find_std_xuti_subtract.dll" 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :VCEnd”已退出代码为 -1。 1>已完成生成项目“find_std_xuti_subtract.vcxproj”的操作 - 失败。
最新发布
03-19
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值