Window 下如何检查 DLL 依赖(How to check for DLL dependency?)
主要有如下几种方法,根据IDE环境或者已装软件,灵活选用相关工具。推荐方法3和方法4。
- 安装 Visual Studio,加载 "Developer Command Prompt for VS 2017",使用 dumpbin 工具
dumpbin /dependents your_dll_file.dll
- 安装 Cygwin,打开 Cygwin Terminal,可以运行 linux 指令
ldd your_dll_file.dll
参考链接:https://stackoverflow.com/questions/7378959/how-to-check-for-dll-dependency
- 安装 git bash ,直接可以使用linux ldd指令。
ldd your_dll_file.dll
-
利用 windows API 实现linux ldd 功能,下载 ldd_win,将可执行程序添加到环境变量中,就可以系统终端中调用 ldd finename 查看依赖。
Dependency Walker is a free utility that scans any 32-bit or 64-bit Windows module (exe, dll, ocx, sys, etc.) and builds a hierarchical tree diagram of all dependent modules. For each module found, it lists all the functions that are exported by that module, and which of those functions are actually being called by other modules. Another view displays the minimum set of required files, along with detailed information about each file including a full path to the file, base address, version numbers, machine type, debug information, and more.
本文作者:Oddpage
本文链接:https://www.cnblogs.com/oddpage/p/16099044.html
版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步