windows Windows的静态库检查器?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2188490/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 13:52:52  来源:igfitidea点击:

Static library inspector for windows?

c++windowsstatic

提问by gct

I know there are tools like PE Explorer for inspecting the contents of DLLs on windows (exported symbols, etc). Is there something similar for static libraries? I'm linking against a third party library that's generating some linking errors, and I want to double check that the symbols I expect are indeed being provided.

我知道有像 PE Explorer 这样的工具可以检查 Windows 上 DLL 的内容(导出的符号等)。静态库有类似的东西吗?我正在链接一个产生一些链接错误的第三方库,我想仔细检查是否确实提供了我期望的符号。

回答by dirkgently

Dumpbin

垃圾桶

The DUMPBIN utility, which is provided with the 32-bit version of Microsoft Visual C++, combines the abilities of the LINK, LIB, and EXEHDR utilities. The combination of these tools features the ability to provide information about the format and symbols provided in executable, library, and DLL files.

DUMPBIN 实用程序随 32 位版本的 Microsoft Visual C++ 一起提供,结合了 LINK、LIB 和 EXEHDR 实用程序的功能。这些工具的组合能够提供有关可执行文件、库文件和 DLL 文件中提供的格式和符号的信息。

回答by shoosh

dumpbincomes with Visual Studio and can peek into .lib files. read the documentation to figure out which swich you want to use or just use /all, dump it all to a file and use an editor to search the symbols you're looking for.

dumpbin随 Visual Studio 一起提供,可以查看 .lib 文件。阅读文档以确定您要使用哪个开关,或者只使用 /all,将其全部转储到一个文件中,然后使用编辑器搜索您要查找的符号。