什么是ldd的c语类似物? [英] What is the clang analogue of ldd?

查看:206
本文介绍了什么是ldd的c语类似物?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何找出可执行文件所依赖的DLL?

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

在具有GNU开发工具链(gcc& c)的系统上,我使用ldd进行操作,但是clang系统如何处理,例如Mac OS X(不会执行 ldd)吗?

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)?

推荐答案

在Mac OSX上,您将使用otool -L而不是ldd.无论您使用什么编译器,此方法都有效.其他操作系统可能还具有其他工具.例如在Windows上,您将使用Dependency Walker.

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.

这篇关于什么是ldd的c语类似物?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆