NO

Author Topic: Unrecognized debug symbols in external lib.  (Read 6039 times)

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Unrecognized debug symbols in external lib.
« 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.
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Unrecognized debug symbols in external lib.
« Reply #1 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.
/Pelle

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: Unrecognized debug symbols in external lib.
« Reply #2 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).
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Unrecognized debug symbols in external lib.
« Reply #3 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?
/Pelle

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: Unrecognized debug symbols in external lib.
« Reply #4 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...
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

Offline Vortex

  • Member
  • *
  • Posts: 867
    • http://www.vortex.masmcode.com
Re: Unrecognized debug symbols in external lib.
« Reply #5 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.
Code it... That's all...

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2115
Re: Unrecognized debug symbols in external lib.
« Reply #6 on: May 03, 2014, 01:06:21 PM »
POLINK: fatal error: Unknown kind (0x1510) of CodeView symbol in object 'windowscodecs.lib(guids.obj)'.
May the source be with you

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Unrecognized debug symbols in external lib.
« Reply #7 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...
/Pelle

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Unrecognized debug symbols in external lib.
« Reply #8 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).
/Pelle