查看exe依赖的DLL
Windows下使用dumpbin
dumpbin.exe通常在下面的路径下:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64
将该路径加入到PATH环境变量中即可
$ dumpbin /dependents ch01.exe
Microsoft (R) COFF/PE Dumper Version 14.15.26729.0
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file ch01.exe
File Type: EXECUTABLE IMAGE
Image has the following dependencies:
vtkRenderingOSPRay-8.1.dll
vtkRenderingOpenVR-8.1.dll
vtkRenderingGL2PSOpenGL2-8.1.dll
vtkIOLegacy-8.1.dll
vtkRenderingVolumeOpenGL2-8.1.dll
vtkRenderingOpenGL2-8.1.dll
vtkIOCore-8.1.dll
vtkInteractionStyle-8.1.dll
vtkRenderingFreeType-8.1.dll
vtkCommonDataModel-8.1.dll
vtkCommonCore-8.1.dll
MSVCP140D.dll
VCRUNTIME140D.dll
ucrtbased.dll
KERNEL32.dll
Summary
1000 .00cfg
1000 .data
3000 .idata
1000 .pdata
4000 .rdata
1000 .reloc
1000 .rsrc
D000 .text
备注:Linux下使用 ldd 查看可执行文件的依赖so