开发者

dumpbin equivalent in Qt

Is there any utility similar to dumpbin(Visual Studio) in Qt that allows me to check the func开发者_如何转开发tions that are exposed in a Qt-Creator compiled dll ??

I need to know what methods are exposed in a given dll so that I can load the method dynamically at runtime using QLibrary.

Thanks, De Costo


You can use Dependency Walker. It is a very useful tool for any executable file, whether it's a dynamic library or an application.

Also, nothing prevents you from compiling with VC++ in Qt Creator (Qt Creator supports GCC and VC++ as compilers, maybe more) and using dumpbin, too.


  • On Linux and Mac, use nm
  • On Windows, you can use nm via Cygwin, but I think dumpbin will still work. (I just tried it on a project compiled with g++ via Qt Creator, and it worked.)


Either:

  • use an existing MS Visual Studio installation and its dumpbin.exe
  • install the Windows SDK (only the Win32 dev tools) and use its dumpbin.exe
  • learn to use the mingw/GCC (actually binutils) nm and objdump.

I find that (even with mingw/gcc) the dumpbin.exe provides the best results.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜