Code::Blocks Forums

User forums => Help => Topic started by: jozzzz on February 18, 2006, 06:53:39 pm

Title: LINK : fatal error LNK1158: cannot run 'cvtres.exe'
Post by: jozzzz 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
Title: Re: LINK : fatal error LNK1158: cannot run 'cvtres.exe'
Post by: Michael 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
Title: Re: LINK : fatal error LNK1158: cannot run 'cvtres.exe'
Post by: severach 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.
Title: Re: LINK : fatal error LNK1158: cannot run 'cvtres.exe'
Post by: penguino 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.
Title: Re: LINK : fatal error LNK1158: cannot run 'cvtres.exe'
Post by: jozzzz 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.
Title: Re: LINK : fatal error LNK1158: cannot run 'cvtres.exe'
Post by: Michael 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
Title: Re: LINK : fatal error LNK1158: cannot run 'cvtres.exe'
Post by: Vampyre_Dark on February 20, 2006, 08:28:54 pm
You can just download cvtres.exe direct from MSDN.