哪里是在Mac OS X中的标准C库? [英] Where is the standard C library on Mac OS X?

查看:1753
本文介绍了哪里是在Mac OS X中的标准C库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想找到Mac OS X上我已经试过像路标准C库:/usr/lib/libc.a或/usr/lib/libm.a,但目前还没有这样的文件系统。你能告诉我哪里可以找到它?

I am trying to find the standard C library on Mac OS X. I've tried paths like: "/usr/lib/libc.a" or "/usr/lib/libm.a" , but there are no such files on the system. Could you tell me where to find it?

然后我用终端在Linux机器并运行这样的命令:

Then I used Terminal at a Linux machine and run such command:

ar t /usr/lib/libc.a

它返回的.o文件列表和这些.o文件是这样的:

It returns a list of .o files and those .o files are like these:

svc.o
xdr.o
...

什么是这些文件的含义?到哪里找呢?

What are the meanings of these files? where to find them?

推荐答案

标准库是在OS X libSystem.dylib的一部分。

The standard library is part of libSystem.dylib on OS X.

这篇关于哪里是在Mac OS X中的标准C库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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