Author Topic: LINK : fatal error LNK1158: cannot run 'cvtres.exe'  (Read 25454 times)

jozzzz

  • Guest
LINK : fatal error LNK1158: cannot run 'cvtres.exe'
« on: February 18, 2006, 06:53:39 pm »
Hi.
I instaling on pc Microsoft Visual C++ Toolkit 2003 and Microsoft Platform SDK. I setting path for rc.exe as c:\Microsoft Platform SDK\Bin\RC.Exe and extra path c:\Microsoft Platform SDK\Bin\win64 but i have this error:
LINK : fatal error LNK1158: cannot run 'cvtres.exe'
What I can  do?
Thx for Your help. Jozzzz

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: LINK : fatal error LNK1158: cannot run 'cvtres.exe'
« Reply #1 on: February 18, 2006, 07:10:55 pm »
Hello,

There are some posts in this forum that might help you. Just do a search with e.g., cvtres.exe.

Best wishes,
Michael

Offline severach

  • Multiple posting newcomer
  • *
  • Posts: 44
Re: LINK : fatal error LNK1158: cannot run 'cvtres.exe'
« Reply #2 on: February 19, 2006, 06:33:09 am »
Microsoft left a few things out of their MSVT package. Since noone knows whether they were left out by mistake or for license reasons, noone with MSVC is too interested in giving them out. A few google searches turn up some tricky sources. Fortunately, Microsoft has finally wisened up and solved this problem and many more.

http://msdn.microsoft.com/vstudio/express/support/faq/default.aspx#pricing

http://msdn.microsoft.com/vstudio/express/support/install/

A goodly amount of MSVT missing files are there but the missing SDK files aren't.
« Last Edit: February 19, 2006, 06:55:37 am by severach »

penguino

  • Guest
Re: LINK : fatal error LNK1158: cannot run 'cvtres.exe'
« Reply #3 on: February 19, 2006, 10:45:10 am »
I had the same problem which I solved by doing this:

[1] Installing the Microsoft .Net Framework 2.0
[2] Adding the path of the .NET Framework files (for me "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727") to Global compiler settings > Programs > Additional Paths within Code::Blocks.

Now I can build and link resource files without errors.

jozzzz

  • Guest
Re: LINK : fatal error LNK1158: cannot run 'cvtres.exe'
« Reply #4 on: February 19, 2006, 11:52:39 am »
To penguino:
xp profesional havent this one Microsoft .Net Framework 2.0 ?

To severach:
I must download Visual c++ express 2005, but Codeblocks ist smal and very good and simply.

To Michal:
Thx, i does this.

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: LINK : fatal error LNK1158: cannot run 'cvtres.exe'
« Reply #5 on: February 19, 2006, 04:15:09 pm »
xp profesional havent this one Microsoft .Net Framework 2.0 ?

No, if you want it you have to download it. Moreover, you can also download the Microsoft .Net Framework 2.0 SDK.

Best wishes,
Michael

Offline Vampyre_Dark

  • Regular
  • ***
  • Posts: 255
  • Hello!
    • Somewhere Over The Rainbow...
Re: LINK : fatal error LNK1158: cannot run 'cvtres.exe'
« Reply #6 on: February 20, 2006, 08:28:54 pm »
You can just download cvtres.exe direct from MSDN.
C::B Wishlist
~BOYCOTT THE EVIL YELLOW BOXES~