当前位置:网站首页>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 .
边栏推荐
- 【可能是全中文网最全】pushgateway入门笔记
- Search in the two-dimensional array of leetcode sword offer (10)
- 【云原生训练营】模块八 Kubernetes 生命周期管理和服务发现
- Matlab r2011b neural network toolbox precautions
- MySQL reports an error: [error] mysqld: file '/ mysql-bin. 010228‘ not found (Errcode: 2 “No such file or directory“)
- Global and Chinese market of marketing automation 2022-2028: Research Report on technology, participants, trends, market size and share
- Can‘t connect to MySQL server on ‘localhost‘
- Centos7 deployment sentry redis (with architecture diagram, clear and easy to understand)
- Jvm-06-execution engine
- Global and Chinese market of Bus HVAC systems 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢

【注意力机制】【首篇ViT】DETR,End-to-End Object Detection with Transformers网络的主要组成是CNN和Transformer
![[probably the most complete in Chinese] pushgateway entry notes](/img/5a/6dcb75f5d713ff513ad6842ff53cc3.png)
[probably the most complete in Chinese] pushgateway entry notes

Halcon与Winform学习第一节

Redis cache penetration, cache breakdown, cache avalanche solution

Jvm-04-runtime data area heap, method area

视觉上位系统设计开发(halcon-winform)-4.通信管理

Remote server background hangs nohup

视觉上位系统设计开发(halcon-winform)

What is embedding (encoding an object into a low dimensional dense vector), NN in pytorch Principle and application of embedding
![[transformer] Introduction - the original author of Harvard NLP presented the annotated transformer in the form of line by line implementation in early 2018](/img/2b/b23aeab584f89be6678c0fe059d4b6.png)
[transformer] Introduction - the original author of Harvard NLP presented the annotated transformer in the form of line by line implementation in early 2018
随机推荐
Use of Tex editor
Global and Chinese markets for infrared solutions (for industrial, civil, national defense and security applications) 2022-2028: Research Report on technology, participants, trends, market size and sh
Characteristics of MySQL InnoDB storage engine -- Analysis of row lock
Kubernetes带你从头到尾捋一遍
Halcon与Winform学习第二节
Yolov5系列(一)——网络可视化工具netron
Global and Chinese markets for sterile packaging 2022-2028: Research Report on technology, participants, trends, market size and share
4-33--4-35
Global and Chinese market of transfer case 2022-2028: Research Report on technology, participants, trends, market size and share
What is one hot encoding? In pytoch, there are two ways to turn label into one hot coding
基于SVN分支开发模式流程浅析
App global exception capture
[cloud native training camp] module VIII kubernetes life cycle management and service discovery
Explanation of time complexity and space complexity
Byte practice plane longitude 2
Final review points of human-computer interaction
第04章_逻辑架构
Concurrency-01-create thread, sleep, yield, wait, join, interrupt, thread state, synchronized, park, reentrantlock
Nppexec get process return code
Yolov5 advanced 8 format conversion between high and low versions