# How can I find library dependencies of a Windows DLL?

**URL:** <https://linux-tips.com/t/how-can-i-find-library-dependencies-of-a-windows-dll/328>\
**Category:** Programming\
**Created:** [March 15, 2016, 2:32pm UTC](https://linux-tips.com/t/how-can-i-find-library-dependencies-of-a-windows-dll/328 "2016-03-15T14:32:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Debuser](https://linux-tips.com/letter_avatar_proxy/v4/letter/d/96bed5/32.png) [@Debuser](https://linux-tips.com/u/Debuser)\
**Post date:** [March 15, 2016, 2:32pm UTC](https://linux-tips.com/t/how-can-i-find-library-dependencies-of-a-windows-dll/328/1 "2016-03-15T14:32:40Z")

</div>

Is it possible to find all of the library dependencies of a Windows DLL under Linux?

---

<div class="post-metadata">

**Author:** ![demirten](https://linux-tips.com/user_avatar/linux-tips.com/demirten/32/64_2.png) [@demirten](https://linux-tips.com/u/demirten)\
**Post date:** [March 15, 2016, 2:39pm UTC](https://linux-tips.com/t/how-can-i-find-library-dependencies-of-a-windows-dll/328/2 "2016-03-15T14:39:11Z")

</div>

The **Portable Executable (PE)** format is a file format for executables and DLLs in Windows operating systems.

You may be surprised that, **PE** is a modified version of the Unix **COFF** (Common Object File Format).

You can find dependent DLLs using `objdump` utility with `-p` argument in Linux. It will print a lot of information, you need to filter `DLL` keyword like below:

```auto
$ objdump -p libMyCustom.dll | grep DLL
	DLL
 vma: Hint Time Forward DLL First
	DLL Name: ADVAPI32.dll
	DLL Name: GDI32.dll
	DLL Name: KERNEL32.dll
	DLL Name: msvcrt.dll
	DLL Name: SHELL32.DLL
	DLL Name: USER32.dll
	DLL Name: WS2_32.dll

```

---

<div class="post-metadata">

**Author:** ![ugurkoltuk](https://linux-tips.com/letter_avatar_proxy/v4/letter/u/bbe5ce/32.png) [@ugurkoltuk](https://linux-tips.com/u/ugurkoltuk)\
**Post date:** [April 1, 2016, 9:56am UTC](https://linux-tips.com/t/how-can-i-find-library-dependencies-of-a-windows-dll/328/3 "2016-04-01T09:56:34Z")

</div>

You can also use the dependency walker [http://www.dependencywalker.com/](http://www.dependencywalker.com/)
