What is the clang analogue of ldd?

守給你的承諾、 提交于 2019-12-23 09:43:01

问题


How do I find out what DLLs an executable depends on?

On systems with the GNU development toolchain (gcc &c) I use ldd for that, but what about the clang systems, like, e.g., Mac OS X (which does not have ldd)?


回答1:


On Mac OSX, you'd use otool -L instead of ldd. This works regardless of the compiler you used. Other operating systems may have yet other tools; e.g. on Windows you'd use Dependency Walker.



来源:https://stackoverflow.com/questions/23697641/what-is-the-clang-analogue-of-ldd

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!