C标准库的位置 [英] Location of C standard library

查看:184
本文介绍了C标准库的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在gcc手册它被赋予了C标准库本身
存储在/usr/lib/libc.a'。我已经安装了GCC,但无法找到该位置的libc.a,很想知道在什么位置。

In the gcc manual it is given that "The C standard library itself is stored in ‘/usr/lib/libc.a’". I have gcc installed, but could not find libc.a at the said location. Curious to know where is it located.

我发现许多.so文件在/ usr / lib目录位置。那些是什么?

I find many .so files in /usr/lib location. What are those?

推荐答案

有几件事情:


  • gcc和glibc的是两个不同的东西。 GCC是编译器,glibc的是运行时库。 pretty太多一切都需要glibc的运行。

  • .A 文件是静态库,的.so 表示共享对象是Linux相当于一个DLL的

  • 大多数事情并不反对libc.a的链接,他们对链接libc.so

  • gcc and glibc are two different things. gcc is the compiler, glibc are the runtime libraries. Pretty much everything needs glibc to run.
  • .a files are static libraries, .so means shared object and is the Linux equivalent of a DLL
  • Most things DON'T link against libc.a, they link against libc.so

。希望清除它为您服务。至于位置,它几乎肯定要在 /usr/lib/libc.a 和/或 /usr/lib/libc.so 。就像我说的。所以一个是比较常见的。

Hope that clears it up for you. As for the location, it's almost certainly going to be in /usr/lib/libc.a and / or /usr/lib/libc.so. Like I said, the .so one is the more common.

这篇关于C标准库的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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