[Solved] qt5.9 + vs2015 32bit Error: “-1: error: LNK1158: Can not Run “rc.exe”

The development platform qt5.9.0+vs2015 32bit…. After preparing to run vs2015 and installing vs2019, an error occurred when running the original program that could run

“-1: error: LNK1158: cannot run “rc.exe”

Copied the two files “rc.exe rcdll.dll” in the “C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x86” directory to “C:\Program Files (x86) \Microsoft Visual Studio 12.0\VC\bin”. 

(Pay attention to the version number, because I am 32-bit so I choose X86, the reason why I choose “Microsoft Visual Studio 12.0” instead of “Microsoft Visual Studio 14.0” is that it should be in my “C:\Program Files (x86)” directory The best is “Microsoft Visual Studio 12.0”). 

Add the path C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x86 to the system environment variable Path, as shown in the following figure:

 After following the above steps, the problem is solved.

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *