可以使用 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"
网友评论