dumpbin /dependents
only shows direct dependents. It does not show grandchild dependents
This is a simplified program to illustrate the problem.
- Executable 'TheProgram
uses
Child.dll` Child.dll
usesGrandChild.dll
GrandChild.dll
doesn't depend upon any other dlls
Using VS2022 for a 64bit build create the Visual Studio solution in the Build folder.
mkdir build
cmake . -BBuild -G"Visual Studio 17 2022" -A x64
start Build\TheProgram.sln
From the VS Command Prompt shell
copy lib1\Debug\Child.dll app\Debug
copy lib2\Debug\GrandChild.dll app\Debug
From the VS Command Prompt shell
app\Debug\TheProgram.exe
The final step is to use dumpbin on the progrm to view dependnecies. Observe that it only shows the child dependencies, and doesn't show any grandchild dependnecies.
dumpbin /dependents app\Debug\TheProgram.exe
Microsoft (R) COFF/PE Dumper Version 14.37.32824.0
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file app\Debug\TheProgram.exe
File Type: EXECUTABLE IMAGE
Image has the following dependencies:
Child.dll
VCRUNTIME140D.dll
ucrtbased.dll
KERNEL32.dll
Summary
1000 .00cfg
1000 .data
1000 .idata
1000 .pdata
3000 .rdata
1000 .reloc
1000 .rsrc
8000 .text