What is the equivalent of Linux's ldd on windows?

前端 未结 10 1705
既然无缘
既然无缘 2020-12-12 14:28

What is the equivalent of Linux\'s ldd on Windows?

10条回答
  •  春和景丽
    2020-12-12 15:08

    For windows 10, with visual studio 2017, I go in the search bar of windows and type:

    "developer Command Prompt for VS 2017" ( a special cmd.exe for Visual studio developer)

    This allows to get access to DUMPBIN that should be used with the \IMPORTS tag. For example, in the correct directory:

    DUMPBIN \IMPORTS yourfile.exe (others extension may work too)

    For me, this list the DLL and the functions used.

    Alternatively, you can use the tag \ALL that is much more verbose.

    see the microsoft explanation of DUMPBIN:

    https://docs.microsoft.com/en-us/cpp/build/reference/imports-dumpbin?view=vs-2019

    Example ( with only a part) of the content sended back by the command

提交回复
热议问题