Author Topic: Nightly Build 28 Feb - Link error - cvtres.exe  (Read 6035 times)

Offline jmeuf

  • Multiple posting newcomer
  • *
  • Posts: 18
Nightly Build 28 Feb - Link error - cvtres.exe
« 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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7789
    • My Best Post
Re: Nightly Build 28 Feb - Link error - cvtres.exe
« Reply #1 on: March 02, 2007, 12:16:05 am »
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
« Last Edit: March 02, 2007, 12:36:07 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Nightly Build 28 Feb - Link error - cvtres.exe
« Reply #2 on: March 02, 2007, 02:16:27 am »
For the proper operation of VCTK, .NET SDK is necessary. Install a .NET SDK. :)
Be a part of the solution, not a part of the problem.

Offline jmeuf

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: Nightly Build 28 Feb - Link error - cvtres.exe
« Reply #3 on: March 02, 2007, 06:09:08 pm »
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?


Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Nightly Build 28 Feb - Link error - cvtres.exe
« Reply #4 on: March 02, 2007, 06:24:33 pm »
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. :)
Be a part of the solution, not a part of the problem.

Offline jmeuf

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: Nightly Build 28 Feb - Link error - cvtres.exe
« Reply #5 on: March 02, 2007, 06:53:32 pm »
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 !!!

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Nightly Build 28 Feb - Link error - cvtres.exe
« Reply #6 on: March 02, 2007, 07:51:58 pm »
I searched for some solution. But got no concrete result.

Following links have some clue.
Quote
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.
Quote
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=327391&SiteID=1

I don't see any good solution of it. :)
Be a part of the solution, not a part of the problem.

Offline jmeuf

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: Nightly Build 28 Feb - Link error - cvtres.exe
« Reply #7 on: March 02, 2007, 08:43:30 pm »
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.