当前位置:网站首页>编译,连接 -- 笔记 -2
编译,连接 -- 笔记 -2
2022-07-06 06:46:00 【wishfly】
1 Linux操作系统上面的动态共享库大致分为三类
ldd nm strip strings readelf file查看信息_pao98pao的博客-CSDN博客
1、操作系统级别的共享库和基础的系统工具库 比方说libc.so, libz.so, libpthread.so等等,这些系统库会被放在/lib和/usr/lib目录下面,如果是64位操作系统,还会有/lib64和/usr /lib64目录。如果操作系统带有图形界面,那么还会有/usr/X11R6/lib目录,如果是64位操作系统,还有/usr/X11R6 /lib64目录。此外还可能有其他特定Linux版本的系统库目录。 这些系统库文件的完整和版本的正确,确保了Linux上面各种程序能够正常的运行。 2、应用程序级别的系统共享库 并非操作系统自带,但是可能被很多应用程序所共享的库,一般会被放在/usr/local/lib和/usr/local/lib64这两个目录下面。很多你自行编译安装的程序都会在编译的时候自动把/usr/local/lib加入gcc的-L参数,而在运行的时候自动到/usr/local /lib下面去寻找共享库。 以上两类的动态共享库,应用程序会自动寻找到他们,并不需要你额外的设置和担心。这是为什么呢?因为以上这些目录默认就被加入到动态链接程序的搜索路径里面了。Linux的系统共享库搜索路径定义在/etc/ld.so
边栏推荐
- LeetCode每日一题(1870. Minimum Speed to Arrive on Time)
- 成功解决AttributeError: Can only use .cat accessor with a ‘category‘ dtype
- 26岁从财务转行软件测试,4年沉淀我已经是25k的测开工程师...
- SQL Server manager studio(SSMS)安装教程
- 【软件测试进阶第1步】自动化测试基础知识
- 指尖上的 NFT|在 G2 上评价 Ambire,有机会获得限量版收藏品
- Attributeerror: can 't get attribute' sppf 'on < module' models. Common 'from' / home / yolov5 / Models / comm
- Number of query fields
- ROS学习_基础
- The registration password of day 239/300 is 8~14 alphanumeric and punctuation, and at least 2 checks are included
猜你喜欢

After working for 10 years, I changed to a programmer. Now I'm 35 + years old and I'm not anxious

LeetCode每日一题(971. Flip Binary Tree To Match Preorder Traversal)

On the first day of clock in, click to open a surprise, and the switch statement is explained in detail

Today's summer solstice
![[unity] how to export FBX in untiy](/img/03/b7937a1ac1a677f52616186fb85ab3.jpg)
[unity] how to export FBX in untiy

机器学习植物叶片识别

Apache dolphin scheduler source code analysis (super detailed)

After sharing the clone remote project, NPM install reports an error - CB () never called! This is an error with npm itself.

Fedora/rehl installation semanage

AttributeError: Can‘t get attribute ‘SPPF‘ on <module ‘models. common‘ from ‘/home/yolov5/models/comm
随机推荐
Day 248/300 thoughts on how graduates find jobs
Practical guidance for interface automation testing (Part I): what preparations should be made for interface automation
利用快捷方式-LNK-上线CS
Brief introduction to the curriculum differences of colleges and universities at different levels of machine human major -ros1/ros2-
AttributeError: Can‘t get attribute ‘SPPF‘ on <module ‘models. common‘ from ‘/home/yolov5/models/comm
LeetCode每日一题(971. Flip Binary Tree To Match Preorder Traversal)
Office-DOC加载宏-上线CS
攻防世界 MISC中reverseMe简述
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
My creation anniversary
Redis Foundation
Is it difficult for girls to learn software testing? The threshold for entry is low, and learning is relatively simple
26岁从财务转行软件测试,4年沉淀我已经是25k的测开工程师...
Leetcode daily question (971. flip binary tree to match preorder traversal)
MySQL5.72. MSI installation failed
Phishing & filename inversion & Office remote template
Huawei equipment configuration ospf-bgp linkage
我的创作纪念日
一文读懂简单查询代价估算
C语言_双创建、前插,尾插,遍历,删除