LNK1158: cannot run 'rc.exe'
-
Hi,
I'm using qt 5.12.0, MSVC 2015 64 bit and Qt Creator 4.10.0-rc1. I now get the linker error
LNK1158: cannot run 'rc.exe'This was not an issue a few months back and I have not changed anything to the project since then. IS there a workaround for this? Any suggestions are much appreciated.
Thanks in advance
-
Hi,
I'm using qt 5.12.0, MSVC 2015 64 bit and Qt Creator 4.10.0-rc1. I now get the linker error
LNK1158: cannot run 'rc.exe'This was not an issue a few months back and I have not changed anything to the project since then. IS there a workaround for this? Any suggestions are much appreciated.
Thanks in advance
@viniltc said in LNK1158: cannot run 'rc.exe':
LNK1158: cannot run 'rc.exe'
There are many possibilities, including even this forum's https://forum.qt.io/topic/90839/lnk1158-cannot-run-rc-exe ?
Start to have a hunt around, see where that
rc.exeis, does it run (e.g. could have bad DLL dependencies), is it on yourPATH, is it on whatever environment variables VS uses (vcvars.bat), how is it referenced from Creator kits, etc.? See if you can get back with some more of a clue. -
Hi @JonB Thanks for your prompt response.
I foundrc.exein the following pathC:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\arm64and I just added this to the environment path.@JonB said in LNK1158: cannot run 'rc.exe':
is it on whatever environment variables VS uses (
vcvars.bat),.Do you mean to copy
rc.exeto the following location?
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64Also, how do I make sure if
rc.exeis in good shape? If I double click on it, I get the following error:
Does that mean
rc.exeis bad? -
Hi @JonB Thanks for your prompt response.
I foundrc.exein the following pathC:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\arm64and I just added this to the environment path.@JonB said in LNK1158: cannot run 'rc.exe':
is it on whatever environment variables VS uses (
vcvars.bat),.Do you mean to copy
rc.exeto the following location?
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64Also, how do I make sure if
rc.exeis in good shape? If I double click on it, I get the following error:
Does that mean
rc.exeis bad?
