keywords: [VisualStudio]不能运行 ‘rc.exe’( error LNK1158 cannot run ‘rc.exe’)

先装VS2017,再装VS2015后,使用cmake-gui生成vs solution时报错:

不能运行 'rc.exe'( error LNK1158: cannot run 'rc.exe')

解决办法:

转载自:https://blog.csdn.net/leifeng_soul/article/details/52622584

  1. 在D:\Programs\Microsoft Visual Studio 12.0\Common7\IDE中找到devenv.exe。在cmd命令行中切换到该路径,使用命令devenv /ResetSettings将VS2013重置到初始设置。

  2. 打开VS2013里面的属性->常规->平台工具,将v120改成v120_xp。


英雄之所以是英雄,是他不知道有一个阴谋在他身后。——张锐锋《古战场》