当前位置:网站首页>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 .
边栏推荐
- SQL server安装位置改不了
- 官网MapReduce实例代码详细批注
- Global and Chinese markets for flexible chips 2022-2028: Research Report on technology, participants, trends, market size and share
- Tensor ellipsis (three points) slice
- Centos7 deployment sentry redis (with architecture diagram, clear and easy to understand)
- Série yolov5 (i) - - netron, un outil de visualisation de réseau
- [probably the most complete in Chinese] pushgateway entry notes
- Leetcode the smallest number of the rotation array of the offer of the sword (11)
- redis缓存穿透,缓存击穿,缓存雪崩解决方案
- Incluxdb2 buckets create database
猜你喜欢
【Transform】【NLP】首次提出Transformer,Google Brain团队2017年论文《Attention is all you need》
[cloud native training camp] module VIII kubernetes life cycle management and service discovery
基础SQL教程
【注意力机制】【首篇ViT】DETR,End-to-End Object Detection with Transformers网络的主要组成是CNN和Transformer
运维体系的构建
【云原生训练营】模块八 Kubernetes 生命周期管理和服务发现
Pytoch deep learning and target detection practice notes
What is one hot encoding? In pytoch, there are two ways to turn label into one hot coding
There are links in the linked list. Can you walk three steps faster or slower
Zero copy underlying analysis
随机推荐
App全局异常捕获
Introduction to redis master-slave, sentinel and cluster mode
Characteristics of MySQL InnoDB storage engine -- Analysis of row lock
什么是one-hot encoding?Pytorch中,将label变成one hot编码的两种方式
Apache ant extension tutorial
基于SVN分支开发模式流程浅析
TPS61170QDRVRQ1
Puppet automatic operation and maintenance troubleshooting cases
基础SQL教程
App global exception capture
Yolov5系列(一)——网络可视化工具netron
Tencent internship interview sorting
Global and Chinese markets for sterile packaging 2022-2028: Research Report on technology, participants, trends, market size and share
[transform] [NLP] first proposed transformer. The 2017 paper "attention is all you need" by Google brain team
Concurrency-02-visibility, atomicity, orderliness, volatile, CAS, atomic class, unsafe
Global and Chinese market of Bus HVAC systems 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
Functional modules and application scenarios covered by the productization of user portraits
【注意力机制】【首篇ViT】DETR,End-to-End Object Detection with Transformers网络的主要组成是CNN和Transformer
Dataframe returns the whole row according to the value