How to tell if a lib was compile

2020-12-08  本文已影响0人  XBruce

可以使用 dumpbin工具的 参数:/DIRECTIVES ,使用方法如下:

dumpbin /directives foo.lib

Look for instances of the runtime libraries specified here.

/DEFAULTLIB:MSVCRTD (module compiled with /MDd)
/DEFAULTLIB:MSVCRT (module compiled with /MD)
/DEFAULTLIB:LIBCMT (module compiled with /MT)

There will probably be many /DEFAULTLIB directives, so you can search using terms like:

dumpbin /DIRECTIVES foo.lib | find /i "msvcr"
上一篇 下一篇

猜你喜欢

热点阅读