The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: slonumber on February 14, 2008, 03:31:01 PM

Title: list of object modules in import library
Post by: slonumber on February 14, 2008, 03:31:01 PM
I am trying to obtain the list of object modules in kernel32.lib.
If I use MS Incremental Linker 5.12.8078:

Masm32\bin\LINK -LIB -LIST Masm32\lib\kernel32.lib >temp.lst

as a result, in "temp.lst" I see 200+  "kernel32.dll" lines.

If I use the Microsoft Library Manager (5.12.8078):
masm32\bin\lib /LIST c:\masm32\lib\kernel32.lib, I either get the same result as above or
I get an error message:
LINK : fatal error LNK1181: cannot open input file "C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\"
because there is no kernel32.lib file at this location. But why is librarian even looking in that location,
if I specifically tell where to look?

I am using windows XP with SP2.

So what is the correct way to get the list of object modules in import library?
Thanks a lot in advance!
Title: Re: list of object modules in import library
Post by: ToutEnMasm on February 14, 2008, 04:24:53 PM
Hello,
Not the good tool to make that.
Dumpbin (VC++ express edition) give you the decorated name of the function.
protolib (dowloadable in this forum) is a tool i have made to have the masm prototypes.He need a .cmd file with a list of .lib or a name of lib as parameter.
There is also l2inc in the \masm32\tools\l2inc directory.
Title: Re: list of object modules in import library
Post by: slonumber on February 14, 2008, 05:18:19 PM
Thanks a lot, I'll try all of these tools. But still, just for learning purposes, why do not all the "canonical" tools work?
Title: Re: list of object modules in import library
Post by: u on February 14, 2008, 08:59:39 PM
Also, there's the GNU BinUtils.  The easiest way to install them is with MinGW (google MinGW). Just add the c:\MinGW\bin to your PATH, and use
objdump -f myFile.lib
there are many options/features, some of which might solve future problems with objects/libraries.
Title: Re: list of object modules in import library
Post by: slonumber on February 14, 2008, 09:33:40 PM
Thanks a lot, everybody!