当前位置:网站首页>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 .
边栏推荐
- Apache ant extension tutorial
- [combinatorics] permutation and combination (set permutation, step-by-step processing example)
- Use of Tex editor
- Jvm-02-class loading subsystem
- Introduction to redis master-slave, sentinel and cluster mode
- Reentrantlock usage and source code analysis
- Remote server background hangs nohup
- Matlab r2011b neural network toolbox precautions
- 【注意力机制】【首篇ViT】DETR,End-to-End Object Detection with Transformers网络的主要组成是CNN和Transformer
- 什么是Label encoding?one-hot encoding ,label encoding两种编码该如何区分和使用?
猜你喜欢

Kubernetes will show you from beginning to end

Idea does not specify an output path for the module

Pytoch deep learning and target detection practice notes

el-switch 赋值后状态不变化

Kubernetes帶你從頭到尾捋一遍

【可能是全中文网最全】pushgateway入门笔记

【Transformer】入门篇-哈佛Harvard NLP的原作者在2018年初以逐行实现的形式呈现了论文The Annotated Transformer

【云原生训练营】模块七 Kubernetes 控制平面组件:调度器与控制器

Concurrency-02-visibility, atomicity, orderliness, volatile, CAS, atomic class, unsafe

Byte practice plane longitude 2
随机推荐
Concurrency-02-visibility, atomicity, orderliness, volatile, CAS, atomic class, unsafe
Jvm-05-object, direct memory, string constant pool
[cloud native training camp] module 7 kubernetes control plane component: scheduler and controller
高并发下之redis锁优化实战
"Seven weapons" in the "treasure chest" of machine learning: Zhou Zhihua leads the publication of the new book "machine learning theory guide"
Introduction to redis master-slave, sentinel and cluster mode
redis缓存穿透,缓存击穿,缓存雪崩解决方案
Zero copy underlying analysis
4-33--4-35
Global and Chinese market of air cargo logistics 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese market of marketing automation 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese markets for flexible chips 2022-2028: Research Report on technology, participants, trends, market size and share
Idea does not specify an output path for the module
Analysis of development mode process based on SVN branch
5.2-5.3
Yolov5 advanced nine target tracking example 1
[pytorch learning notes] transforms
The state does not change after the assignment of El switch
【Transform】【NLP】首次提出Transformer,Google Brain团队2017年论文《Attention is all you need》
TPS61170QDRVRQ1