25.Linux: Linux系统下面: .o .a .so .ko .la区别

本文介绍了Linux环境下几种常见文件扩展名的含义及用途,包括.o(目标文件)、.a(静态库)、.ko(内核模块)、.so(共享库)和.la(libtool自动生成的共享库配置文件)。这些文件类型对于理解Linux系统开发和模块加载至关重要。

 

.o ----是目标文件,相当于windows中的.obj文件(一般由.c文件通过gcc编译过来)


.a ----是静态库,由多个.o组成在一起,用于静态连接


.ko ---- kernel object,内核模块,是Linux 2.6内核使用的动态连接文件的后缀名,也就是模块文件,用来在Linux系统启动时加载内核模块


.so ----shared object,为共享库,是用户层的动态库,用于动态连接的,和dll差不多。使用同一个.so的程序在运行时只需要该.so的同一份拷贝,

如果编译安装了模块,还会在/lib/modules中增加一个以新内核版本为名字的目录,新的模块文件就放在里面。


.la 为libtool自动生成的一些共享库,vi编辑查看,主要记录了一些配置信息。

---(CVTE面试题)
udo add-apt-repository ppa:jonathonf/ffmpeg-4 Repository: 'deb https://ppa.launchpadcontent.net/jonathonf/ffmpeg-4/ubuntu/ jammy main' Description: Backport of FFmpeg 4 and associated libraries. Now includes AOM/AV1 support! FDK AAC is not compatible with GPL and FFmpeg can't be redistributed with it included. Please don't ask for it to be added to this public PPA. --- PPA supporters: BigBlueButton (https://bigbluebutton.org) --- Donate to FFMPEG: https://ffmpeg.org/donations.html Donate to Debian: https://www.debian.org/donations Donate to this PPA: https://ko-fi.com/jonathonf More info: https://launchpad.net/~jonathonf/+archive/ubuntu/ffmpeg-4 Adding repository. Press [ENTER] to continue or Ctrl-c to cancel.Adding deb entry to /etc/apt/sources.list.d/jonathonf-ubuntu-ffmpeg-4-jammy.list Adding disabled deb-src entry to /etc/apt/sources.list.d/jonathonf-ubuntu-ffmpeg-4-jammy.list Adding key to /etc/apt/trusted.gpg.d/jonathonf-ubuntu-ffmpeg-4.gpg with fingerprint 4AB0F789CBA31744CC7DA76A8CF63AD3F06FC659 Hit:2 https://dl.google.com/linux/chrome/deb stable InRelease Hit:3 https://mirrors.zytintra.com/ubuntu jammy InRelease Hit:4 https://mirrors.zytintra.com/ubuntu jammy-security InRelease Hit:5 https://mirrors.zytintra.com/ubuntu jammy-updates InRelease Hit:6 https://mirrors.zytintra.com/ubuntu jammy-backports InRelease Hit:1 https://packages.microsoft.com/repos/code stable InRelease Ign:7 https://ppa.launchpadcontent.net/jonathonf/ffmpeg-4/ubuntu jammy InRelease Err:8 https://ppa.launchpadcontent.net/jonathonf/ffmpeg-4/ubuntu jammy Release 404 Not Found [IP: 185.125.190.80 443] Reading package lists... Done E: The repository 'https://ppa.launchpadcontent.net/jonathonf/ffmpeg-4/ubuntu jammy Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.
最新发布
09-27
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值