如何查看一个exe\dll文件的依赖项

1、下载depends.exe(又名Dependency walker)

http://www.dependencywalker.com/

如何查看一个exe\dll文件的依赖项

如何查看一个exe\dll文件的依赖项

2、如果安装有VS,可以利用VS自带的dumpbin工具查看

查找VS的安装目录。例如:C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin

打开cmd.exe或者powershell,

cd到该路径:

cd /d D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin

输入:

dumpbin /dependents your-file.dll或者dumpbin /dependents D:\Projects\1test\1.exe

检测出来的Qt依赖不全,VS可以。qt的用qt cmd添加依赖。

如何查看一个exe\dll文件的依赖项