Pelles C forum

Pelles C => General discussions => Topic started by: jj2007 on April 18, 2013, 12:39:50 AM

Title: POLIB: warning: Unable to find member...
Post by: jj2007 on April 18, 2013, 12:39:50 AM
What is the meaning of this warning?

polib /def:mshtml.def /extract:ShowHTMLDialog /out:test.lib /machine:x86
POLIB: warning: Unable to find member 'ShowHTMLDialog'.


mshtml.def:
LIBRARY "MSHTML.dll"
EXPORTS
ShowHTMLDialog


As a matter of fact, the created library (1412 bytes) works like a charm...
Title: Re: POLIB: warning: Unable to find member...
Post by: CLR on April 18, 2013, 02:44:20 AM
Hi jj2007

/DEF and /EXTRACT are mutually exclusive. It makes no sense to use them both at the same time.  :)
Title: Re: POLIB: warning: Unable to find member...
Post by: jj2007 on April 18, 2013, 08:49:44 AM
Thanks. However, if I use this command line...
C:\Masm32\bin>polib C:\Windows\System32\mshtml.dll /extract:ShowHTMLDialog /out:test.lib /machine:x86
... I get a bunch of new warnings ...
POLIB: warning: '' already defined in 'MSHTML.dll'; ignoring definition in 'MSHTML.dll'.
POLIB: warning: '__imp_' already defined in 'MSHTML.dll'; ignoring definition in 'MSHTML.dll'.
... and a much bigger lib file (5706 instead of 1412 bytes).

Is there any logic in this?
Title: Re: POLIB: warning: Unable to find member...
Post by: TimoVJL on April 18, 2013, 02:07:58 PM
T... I get a bunch of new warnings ...
POLIB: warning: '' already defined in 'MSHTML.dll'; ignoring definition in 'MSHTML.dll'.
POLIB: warning: '__imp_' already defined in 'MSHTML.dll'; ignoring definition in 'MSHTML.dll'.
... and a much bigger lib file (5706 instead of 1412 bytes).

Is there any logic in this?
Those exports are ordinals only.

Just create lib from def-file, because those exports are undecorated __stdcall functions.
Code: [Select]
polib.exe /def:mshtml.def /out:mshtml.lib /machine:x86
Code: [Select]
; mshtml.def
LIBRARY mshtml.dll
EXPORTS
_ShowHTMLDialog@20
Title: Re: POLIB: warning: Unable to find member...
Post by: jj2007 on April 18, 2013, 04:18:36 PM
The stdcall decoration did the trick, thanks!

_ShowHTMLDialog@20