Pelles C forum

Pelles C => Feature requests => Topic started by: frankie on April 29, 2014, 05:31:44 pm

Title: Unrecognized debug symbols in external lib.
Post by: frankie on April 29, 2014, 05:31:44 pm
Pelle,
is it possible to change the linker behaviour to treat unknown debug symbols in external libs as warnings instead of errors?
This allows the use of libraries from thirt parties without any correction.
Title: Re: Unrecognized debug symbols in external lib.
Post by: Pelle on May 03, 2014, 11:58:32 am
I don't remember the details right now, but I think there may be references by index. If something is removed/ignored, the indexing will off.
At least generally speaking there are warnings when it's possible to recover, but errors when it's not.
Title: Re: Unrecognized debug symbols in external lib.
Post by: frankie on May 03, 2014, 12:11:32 pm
Thanks Pelle,
I'll take a look in 'uuid.lib' from MS known to have such a problem. I would investigate if this comes from specifying a pdb file.
In this case, if could be possible to detect such situation, maybe you can simply skip debug section for that library or object (behave as if no debug was present).
Title: Re: Unrecognized debug symbols in external lib.
Post by: Pelle on May 03, 2014, 12:19:12 pm
Maybe I can research and add something POLINK, but then I need to know where to look and what to look for. Apparently 'uuid.lib' (any specific version?) - are there others?
Title: Re: Unrecognized debug symbols in external lib.
Post by: frankie on May 03, 2014, 12:35:12 pm
The 'uuid.lib' is the one in the SDK-V7.1.
Linking an exe with debug options give:
Code: [Select]
Writing debug information
POLINK: fatal error: Unknown kind (0x0) of CodeView symbol in object 'Uuid.Lib(unknwn_i.obj)'.
*** Error code: 1 ***
I was just looking for the member 'unknwn_i.obj', still not find it. Let me a while.
Anyway there are a lot of references to specific pdb files for the other objects in the debug$ section...
Title: Re: Unrecognized debug symbols in external lib.
Post by: Vortex on May 03, 2014, 12:51:51 pm
Hi Frankie,

For your information, here you can find Japheth's uuid.lib :

http://japheth.de/WinInc.html

Downloading WinInc, the library can be found in the lib and lib64 folders.
Title: Re: Unrecognized debug symbols in external lib.
Post by: TimoVJL on May 03, 2014, 01:06:21 pm
POLINK: fatal error: Unknown kind (0x1510) of CodeView symbol in object 'windowscodecs.lib(guids.obj)'.
Title: Re: Unrecognized debug symbols in external lib.
Post by: Pelle on May 04, 2014, 10:28:45 am
The 'uuid.lib' is the one in the SDK-V7.1.
Linking an exe with debug options give: ...
OK, I will look at it...
Title: Re: Unrecognized debug symbols in external lib.
Post by: Pelle on May 04, 2014, 10:30:29 am
POLINK: fatal error: Unknown kind (0x1510) of CodeView symbol in object 'windowscodecs.lib(guids.obj)'.
This kind is known to be unknown (i.e. I have seen it before but not understood, so nothing more I can do).