POLIB: warning: Unable to find member...

Started by jj2007, April 18, 2013, 12:39:50 AM

Previous topic - Next topic

jj2007

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...

CLR

Hi jj2007

/DEF and /EXTRACT are mutually exclusive. It makes no sense to use them both at the same time.  :)

jj2007

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?

TimoVJL

Quote from: jj2007 on April 18, 2013, 08:49:44 AM
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.
polib.exe /def:mshtml.def /out:mshtml.lib /machine:x86
; mshtml.def
LIBRARY mshtml.dll
EXPORTS
_ShowHTMLDialog@20
May the source be with you

jj2007

The stdcall decoration did the trick, thanks!

_ShowHTMLDialog@20