error: command 'D:\\vs2015\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1158


解决LINK : fatal error LNK1158: 无法运行“rc.exe”
error: command ‘E:\XXX\VS2015\VC\BIN\x86_amd64\link.exe’ failed with exit status 1158的问题。
错误是放置rc.exe和rcdl.dll文件的地方。Visual Studio使用的是64位“交叉编译器”,它不存在于S(VSInstallDir)VC \ bin中,而是存在于S(VSInstallDir)VClbinx86_amd64文件夹中。
因此,问题的解决方案是从C:\Program Files(×86)\Windows Kits\8.1\bin×86文件夹复制rc.exe和rcdll.dll到S(VSInstallDir)VC\bin\x86_amd64文件夹。

————————————————

原文链接:https://blog.csdn.net/hechilai/article/details/100827019


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM