Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

static library v.s. import library on Windows platform

How could I tell one .lib file is a static library v.s. an import library for a DLL? Is there any tool or command that could do this?

Second question is how could I check the dependencies of a static library, I mean how could I know which DLLs are included in this static library?

Thanks for any help here.

Best regards,

like image 389
cobe24 Avatar asked Nov 05 '11 10:11

cobe24


1 Answers

Import library will add a DLL dependency to your program. Your program won't start, if you don't have the DLL. (You may use Dependency Walker to get the names of the DLL's of your program depend on).

Afaik Static libraries do not have dependencies. They linked into the program, only linker errors will tell you if that particular library depends on another lib. (At least in GCC, I don't know want is the behaviors of the MS tools.)

like image 99
Calmarius Avatar answered Nov 04 '22 23:11

Calmarius