static library v.s. import library on Windows platform

前端 未结 2 1296
忘了有多久
忘了有多久 2021-02-08 12:50

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 chec

2条回答
  •  深忆病人
    2021-02-08 13:19

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

提交回复
热议问题