Windows平台如何查看一個dll依賴的其他dll

  • 2019 年 10 月 5 日
  • 筆記

好多開發者在做windows開發的時候,容易遇到dll依賴的問題,VS自帶一個小工具dumpbin, 這個工具挺好用,可以查看dll相關依賴庫,還可以看dll導出介面。

下面演示下查依賴庫用法:

運行 dumpbin /dependents nm.exe

輸出:

Microsoft (R) COFF/PE Dumper Version 12.00.31101.0 Copyright (C) Microsoft Corporation. All rights reserved.

Dump of file nm.exe

File Type: EXECUTABLE IMAGE Image has the following dependencies:

KERNEL32.dll msvcrt.dll USER32.dll

Summary

1000 .CRT 6000 .bss 6000 .data 2000 .idata 6000 .pdata 3A000 .rdata BA000 .text 1000 .tls 6000 .xdata

是不是非常簡單?