开发者

How to check the MSVC library type?

开发者 https://www.devze.com 2023-04-05 01:55 出处:网络
There are 2 types of library (static/import). How can I get its type other than the name (the type information could be included in the file name such as libcmt.li开发者_如何转开发b, but this could no

There are 2 types of library (static/import). How can I get its type other than the name (the type information could be included in the file name such as libcmt.li开发者_如何转开发b, but this could not be the case for customer library).


Here's a copy of the Microsoft document specifing formats for both static and import .lib files:

http://kishorekumar.net/pecoff_v8.1.htm

Another approach might be to take a couple of libraries, look at the header bytes with "dumpbin" and your favorite hex editor. It should be pretty easy to identify a .lib file from the "magic numbers" in the header.

0

精彩评论

暂无评论...
验证码 换一张
取 消