当前位置:网站首页>Compile, connect -- notes-2
Compile, connect -- notes-2
2022-07-06 06:55:00 【wishfly】
1 Linux The dynamic shared libraries on the operating system are roughly divided into three categories
ldd nm strip strings readelf file Check the information _pao98pao The blog of -CSDN Blog
1、 Operating system level shared library and basic system tool library For example libc.so, libz.so, libpthread.so wait , These system libraries will be placed in /lib and /usr/lib Below directory , If it is 64 Bit operating system , There will be /lib64 and /usr /lib64 Catalog . If the operating system has a graphical interface , Then there will be /usr/X11R6/lib Catalog , If it is 64 Bit operating system , also /usr/X11R6 /lib64 Catalog . There may also be other specific Linux System library directory of version . The completeness and correct version of these system library files , Ensured Linux The above programs can run normally . 2、 Application level system shared libraries The operating system does not come with , But libraries that may be shared by many applications , Usually placed in /usr/local/lib and /usr/local/lib64 Under these two directories . Many programs you compile and install by yourself will automatically put /usr/local/lib Join in gcc Of -L Parameters , And when running, it automatically arrives /usr/local /lib Now go to find the shared library . The above two types of dynamic shared libraries , The application will automatically find them , It doesn't need your extra settings and worries . Why is that ? Because these directories are added to the search path of dynamic link program by default .Linux The search path of the system shared library is defined in /etc/ld.so
边栏推荐
- 自动化测试环境配置
- 【服务器数据恢复】IBM服务器raid5两块硬盘离线数据恢复案例
- 26岁从财务转行软件测试,4年沉淀我已经是25k的测开工程师...
- [English] Grammar remodeling: the core framework of English Learning -- English rabbit learning notes (1)
- 基于PyTorch和Fast RCNN快速实现目标识别
- LeetCode每日一题(1997. First Day Where You Have Been in All the Rooms)
- Leetcode - 152 product maximum subarray
- Arduino tutorial - Simon games
- How to reconstruct the class explosion caused by m*n strategies?
- Introduction and underlying analysis of regular expressions
猜你喜欢
Bitcoinwin (BCW): the lending platform Celsius conceals losses of 35000 eth or insolvency
26岁从财务转行软件测试,4年沉淀我已经是25k的测开工程师...
C语言_双创建、前插,尾插,遍历,删除
[English] Verb Classification of grammatical reconstruction -- English rabbit learning notes (2)
mysql的基础命令
UWA Pipeline 2.2.1 版本更新说明
Brief introduction to the curriculum differences of colleges and universities at different levels of machine human major -ros1/ros2-
ROS学习_基础
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
[ 英語 ] 語法重塑 之 動詞分類 —— 英語兔學習筆記(2)
随机推荐
Data security -- 13 -- data security lifecycle management
LeetCode每日一题(971. Flip Binary Tree To Match Preorder Traversal)
SSO process analysis
ML之shap:基于adult人口普查收入二分类预测数据集(预测年收入是否超过50k)利用Shap值对XGBoost模型实现可解释性案例之详细攻略
Misc of BUU (update from time to time)
mysql的基础命令
指尖上的 NFT|在 G2 上评价 Ambire,有机会获得限量版收藏品
A method to measure the similarity of time series: from Euclidean distance to DTW and its variants
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
Basic commands of MySQL
My creation anniversary
[daily question] 729 My schedule I
Bitcoinwin (BCW): 借贷平台Celsius隐瞒亏损3.5万枚ETH 或资不抵债
从autojs到冰狐智能辅助的心里历程
SQL Server Manager studio (SSMS) installation tutorial
Day 248/300 关于毕业生如何找工作的思考
前缀和数组系列
Fedora/rehl installation semanage
Supporting title of the book from 0 to 1: ctfer's growth road (Zhou Geng)
Bitcoinwin (BCW): the lending platform Celsius conceals losses of 35000 eth or insolvency