Static library vs import library on Windows platform

How can I say that one .lib file is a static library vs an import library for a DLL? Is there any tool or team that could do this?

Second question: how can I check the dependencies of a static library, I mean, how can I find out which DLLs are included in this static library?

Thanks for any help here.

Yours faithfully,

+9
source share
2 answers

DLL . , DLL. ( Dependency Walker, DLL ).

Afaik Static . , , . ( , GCC, , MS-.)

+5

wtf.lib, , , static library import library. , ( DOS cygwin bash).

DOS dumpbin.exe:

dumpbin -all wtf.lib > wtf.lib.txt

Cygwin:

grep 'Archive member name' wtf.lib.txt

grep DLL, wtf.lib import library. , static library.

+3

All Articles