Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: jmeuf on March 01, 2007, 11:21:15 pm
-
Hi,
I just installed a nightly build version (28 Feb) + Visual Toolkit 2003 + Platform SDK.
I'm trying to compile a windows app with resource file.
rc.exe has successfully been found within the pSDK, but I got the following message:
fatal error LNK1158: cannot run 'cvtres.exe'
What is this executable? Is rc.exe not enough to compile the resource file? Where is he supposed to be located (in the C::B folder, the VCToolkit2003, or the pSDK one)?
Thanks for your help.
-
If I recall right, cvtres.exe is part of the dotnet framework.
Searching my hard drive for copies of it, still in progress
WATCOM\binnt
Microsoft_Platform_SDK_for_Windows_Server_2003_R2\Bin\win64 (Microsoft® Visual Studio® .NET)
vs6sp6\VS6sp61.cab
From Google
http://bfilter.sourceforge.net/doc/vctk.php
Tim S
-
For the proper operation of VCTK, .NET SDK is necessary. Install a .NET SDK. :)
-
Ok.
Found the file cvtres.exe in:
c:\windows\Microsoft.net\framework\v2.0.50727
and added this path in:
Settings/Compiler and Debugger/Toolchain executables/Additional Paths
(I had already .net 1.1 and 2.0 installed).
This one is cleared.
Now I got no more error after compilation, but a recurrent warning:
:: === Generic, Debug ===
LIBC.lib(wincrt0.obj):: warning LNK4099: PDB 'libc.pdb' was not found with 'C:\Programme\VCToolkit2003\lib\LIBC.lib' or at 'C:\Dokumente und Einstellungen\Jean-Marc\Eigene Dateien\CodeBlocks Projects\Generic\bin\Debug\libc.pdb'; linking object as if no debug info
Did I miss something at installation?
Shouldn't this file be installed by C::B, like <my_prog_name>.pdb in the project\bin\Debug folder?
-
My guess you are trying to compile your app in debug mode whereas you are trying to link with non-debug C Runtime Library. Link it against libcd.lib and see if there's any difference or not. :)
-
What do you mean by "Link against libcd.lib" Do you mean "add libcd.lib in the Linker Settings/Link libraries"?
I agree with you that I messed up somewhere the Debug and Release settings...
I tried that:
- adding libdcd.lib to Linker libraries > same
- change Debug to Release in the Build Target (compilation toolbar) > "nothing to be done" even if I change / save something in the main !!!
-
I searched for some solution. But got no concrete result.
Following links have some clue.
http://msdn2.microsoft.com/en-us/library/b7whw3f3.aspx
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/LNK4099.asp
You can safely ignore it for the time being.
If you read the following thread, the MS dev team say it's possibly a bug in Lib.exe. Same answer has been repeated in couple of other threads, too.
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=327391&SiteID=1
I don't see any good solution of it. :)
-
woaw ... the first time I put my feet in VC++, and I catch a bug!! I'm impressed...
Ok. I think that the wiser is simply to avoid the debug mode (anyway, I'm not used to).
I will explore your links and try to get the compiler work in release mode.
I appreciate your investigations. Thanks a lot for that!
I wil stay on this thread.