NO

Author Topic: Member not in library  (Read 3190 times)

JohnF

  • Guest
Member not in library
« on: October 25, 2005, 11:56:55 AM »
Code: [Select]

extern struct SYS_SERVICE_TABLE * KeServiceDescriptorTable;


I'm trying to compile a driver which uses an external struct, the POLINK error is

POLINK: fatal error: Corrupt library: 'xxx\Lib\wxpddk\i386\ntoskrnl.lib'; unable to find symbol '_KeServiceDescriptorTable' in member 'ntoskrnl.exe'.

Looking in ntoskrnl.lib one can see this

_KeServiceDescriptorTable^ntoskrnl.exe^ntoskrnl.exe/ 995936897

Anyone know how to proceed?

John

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Member not in library
« Reply #1 on: October 25, 2005, 06:40:02 PM »
Maybe like this?? (it's an exported/imported data value...)

Code: [Select]

extern __declspec(dllimport) struct SYS_SERVICE_TABLE * KeServiceDescriptorTable;


Pelle
/Pelle

JohnF

  • Guest
Member not in library
« Reply #2 on: October 25, 2005, 08:24:47 PM »
Quote from: "Pelle"
Maybe like this?? (it's an exported/imported data value...)

Code: [Select]

extern __declspec(dllimport) struct SYS_SERVICE_TABLE * KeServiceDescriptorTable;


Pelle


That works, thanks Pelle.

John