VS2019 VS2010,Microsoft.Cpp.Win32.v60.targets Error MSB6006 "CL.exe" exited with code 2,需要

2022/4/15 6:14:02

本文主要是介绍VS2019 VS2010,Microsoft.Cpp.Win32.v60.targets Error MSB6006 "CL.exe" exited with code 2,需要,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

停在这一行<CL Condition="'%(ClCompile.PrecompiledHeader)' == 'Create' and '%(ClCompile.ExcludedFromBuild)'!='true'"

但是吧,光看这些报错是看不出来根本原因的

需要修改Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\PlatformToolsets\v60\Microsoft.Cpp.Win32.v60.props这个文件

大概是因为daffodil找不到VC6的编译器在哪(因为我安的是Visual C++6.0完整绿色版-win8可用.EXE这个绿色版,安装路径跟daffodil自带的配置不符,如果是原版的话大概不用修改?)

改了两个地方

21行    <VCInstallDir>C:\Program Files (x86)\Microsoft Visual Studio\VC98</VCInstallDir> 24行    <VSInstallDir>C:\Program Files (x86)\Microsoft Visual Studio\COMMON</VSInstallDir>   参考自: https://blog.csdn.net/educast/article/details/9903991 https://blog.csdn.net/a_222850215/article/details/79609520   附: https://stackoverflow.com/questions/13948990/error-msb6006-cl-exe-exited-with-code-2 搜到了这个问题,但是没啥用,我开启了 工具-选项-项目和解决方案-生成并运行

 

但是我看不懂 输出 里的东西。。。

又附:

https://daffodil.codeplex.com/

很多帖子提到了这个网址,但是这个codeplex.com(应该是微软办的),于2021年7月(大概是这个时间),永久关闭了,(因为github的兴起)所以很多上古的daffodil相关资料需要到https://web.archive.org/,这里去找

 

 



这篇关于VS2019 VS2010,Microsoft.Cpp.Win32.v60.targets Error MSB6006 "CL.exe" exited with code 2,需要的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程