NO

Author Topic: corrupt lib  (Read 2503 times)

MX

  • Guest
corrupt lib
« on: June 02, 2010, 02:59:24 PM »
Hi
I tried to include an library to my project
but theres an error:
POLINK: fatal error: Corrupt library: '.\deviesdk.lib'.
so i tried this 
Code: [Select]
C:\Programme\PellesC\Bin>polib devicesdk.lib /out:new.lib
POLIB: warning: Unknown OMF record type (0x96) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x98) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x98) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x98) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x9a) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0xa0) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x9c) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0xa0) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x9c) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x96) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x98) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x98) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x98) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x9a) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0xa0) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0xa0) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x96) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x98) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x98) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x98) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x9a) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0xa0) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x96) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x98) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x98) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x98) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x9a) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0xa0) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x96) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x98) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x98) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x98) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x9a) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x8c) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x90) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0xa0) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x9c) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0xa0) in 'devicesdk.lib'; ignored.
POLIB: warning: Unknown OMF record type (0x9c) in 'devicesdk.lib'; ignored.
POLIB: fatal error: Library with zero objects is not allowed.
can anyone help me ?
PS sorry for my bad english

Offline Vortex

  • Member
  • *
  • Posts: 867
    • http://www.vortex.masmcode.com
Re: corrupt lib
« Reply #1 on: June 02, 2010, 09:42:04 PM »
Code: [Select]
polib devicesdk.lib /out:new.lib
It seems that you are trying to create an import library but you need a module definition file to get a library.
Code it... That's all...

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: corrupt lib
« Reply #2 on: June 03, 2010, 02:50:55 PM »
It seems a DOS library (16bits) because contains segments definition records (record type 0x98, for 32 bits should use records 0x99).
Please check, the PellesC compiling system can handle only 32bits code.
« Last Edit: June 04, 2010, 12:06:48 PM by frankie »
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide