当前位置:网站首页>GCC cannot find the library file after specifying the link library path
GCC cannot find the library file after specifying the link library path
2022-07-03 15:15:00 【alw_ one hundred and twenty-three】
Problem description :makefile The path and name of the library have been specified in , No error is reported during compilation , But when the program runs, it will report an error that the library file cannot be found .
terms of settlement :
gcc Medium plus -Wl,-rpath=.
Why? ?
gcc -L Option specifies the dynamic library path when linking , Compile and pass , But the path cannot be found during execution ;
gcc -Wl -rpath Option specifies the path at run time , The runtime finds the dynamic library according to the specified path ;
In other words, when dealing with dynamic link libraries 2 A path : Link time path and run time path ,2 The two paths are separate .
边栏推荐
- 视觉上位系统设计开发(halcon-winform)-6.节点与宫格
- Global and Chinese market of solder bars 2022-2028: Research Report on technology, participants, trends, market size and share
- 阿特拉斯atlas扭矩枪 USB通讯教程基于MTCOM
- 在MapReduce中利用MultipleOutputs输出多个文件
- Nppexec get process return code
- 开启 Chrome 和 Edge 浏览器多线程下载
- redis缓存穿透,缓存击穿,缓存雪崩解决方案
- Global and Chinese market of lighting control components 2022-2028: Research Report on technology, participants, trends, market size and share
- Kubernetes - yaml file interpretation
- 使用Tengine解决负载均衡的Session问题
猜你喜欢
Zero copy underlying analysis
[attention mechanism] [first vit] Detr, end to end object detection with transformers the main components of the network are CNN and transformer
Leasing cases of the implementation of the new regulations on the rental of jointly owned houses in Beijing
What is machine reading comprehension? What are the applications? Finally someone made it clear
Reentrantlock usage and source code analysis
Chapter 04_ Logical architecture
The state does not change after the assignment of El switch
Pytoch deep learning and target detection practice notes
Halcon与Winform学习第一节
B2020 points candy
随机推荐
北京共有产权房出租新规实施的租赁案例
Enable multi-threaded download of chrome and edge browsers
Redis lock Optimization Practice issued by gaobingfa
Explanation of time complexity and space complexity
High quality workplace human beings must use software to recommend, and you certainly don't know the last one
Besides lying flat, what else can a 27 year old do in life?
[cloud native training camp] module 7 kubernetes control plane component: scheduler and controller
The state does not change after the assignment of El switch
Chapter 04_ Logical architecture
Tencent internship interview sorting
Basic SQL tutorial
Functional modules and application scenarios covered by the productization of user portraits
Incluxdb2 buckets create database
【pytorch学习笔记】Datasets and Dataloaders
基于SVN分支开发模式流程浅析
什么是Label encoding?one-hot encoding ,label encoding两种编码该如何区分和使用?
在MapReduce中利用MultipleOutputs输出多个文件
Redis cache penetration, cache breakdown, cache avalanche solution
Yolov5系列(一)——网络可视化工具netron
Reentrantlock usage and source code analysis