NO

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

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 1698
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.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 1974
    • 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: 1698
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).

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 1974
    • 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: 1698
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...

Offline Vortex

  • Member
  • *
  • Posts: 517
    • 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: 1827
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: 1974
    • 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: 1974
    • 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