当前位置:网站首页>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
边栏推荐
- [English] Grammar remodeling: the core framework of English Learning -- English rabbit learning notes (1)
- 中青看点阅读新闻
- Leetcode daily question (971. flip binary tree to match preorder traversal)
- 19.段页结合的实际内存管理
- mysql的基础命令
- 【软件测试进阶第1步】自动化测试基础知识
- Attributeerror: can 't get attribute' sppf 'on < module' models. Common 'from' / home / yolov5 / Models / comm
- [Yu Yue education] flower cultivation reference materials of Weifang Vocational College
- ROS2安装及基础知识介绍
- 自动化测试环境配置
猜你喜欢
《从0到1:CTFer成长之路》书籍配套题目(周更)
[English] Verb Classification of grammatical reconstruction -- English rabbit learning notes (2)
UWA Pipeline 2.2.1 版本更新说明
What is the difference between int (1) and int (10)? Senior developers can't tell!
Bitcoinwin (BCW): 借贷平台Celsius隐瞒亏损3.5万枚ETH 或资不抵债
L'Ia dans les nuages rend la recherche géoscientifique plus facile
A brief introduction of reverseme in misc in the world of attack and defense
Pallet management in SAP SD delivery process
Proteus -- Serial Communication parity flag mode
Windows Server 2016 standard installing Oracle
随机推荐
Due to high network costs, arbitrum Odyssey activities are suspended, and nitro release is imminent
[daily question] 729 My schedule I
[brush questions] how can we correctly meet the interview?
PCL实现选框裁剪点云
[English] Verb Classification of grammatical reconstruction -- English rabbit learning notes (2)
mysql的基础命令
【Hot100】739. 每日溫度
Suspended else
Number of query fields
GET 和 POST 请求类型的区别
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
Day 239/300 注册密码长度为8~14个字母数字以及标点符号至少包含2种校验
When my colleague went to the bathroom, I helped my product sister easily complete the BI data product and got a milk tea reward
Database basics exercise part 2
ROS学习_基础
A brief introduction of reverseme in misc in the world of attack and defense
Bitcoinwin (BCW): the lending platform Celsius conceals losses of 35000 eth or insolvency
After working for 10 years, I changed to a programmer. Now I'm 35 + years old and I'm not anxious
UniPro甘特图“初体验”:关注细节背后的多场景探索
Visitor tweets about how you can layout the metauniverse