当前位置:网站首页>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 .
边栏推荐
- Didi off the shelf! Data security is national security
- Incluxdb2 buckets create database
- [pytorch learning notes] transforms
- [daily training] 395 Longest substring with at least k repeated characters
- What is embedding (encoding an object into a low dimensional dense vector), NN in pytorch Principle and application of embedding
- Kubernetes 进阶训练营 Pod基础
- Global and Chinese market of optical fiber connectors 2022-2028: Research Report on technology, participants, trends, market size and share
- Pytoch deep learning and target detection practice notes
- 基于SVN分支开发模式流程浅析
- Unity hierarchical bounding box AABB tree
猜你喜欢

Introduction to redis master-slave, sentinel and cluster mode
![[Yu Yue education] scientific computing and MATLAB language reference materials of Central South University](/img/83/922efb4f88843f1b7feaccf2b515b9.jpg)
[Yu Yue education] scientific computing and MATLAB language reference materials of Central South University

Unity hierarchical bounding box AABB tree

视觉上位系统设计开发(halcon-winform)-3.图像控件

视觉上位系统设计开发(halcon-winform)-5.相机

什么是embedding(把物体编码为一个低维稠密向量),pytorch中nn.Embedding原理及使用

Yolov5系列(一)——網絡可視化工具netron

Characteristics of MySQL InnoDB storage engine -- Analysis of row lock

Concurrency-01-create thread, sleep, yield, wait, join, interrupt, thread state, synchronized, park, reentrantlock

Reentrantlock usage and source code analysis
随机推荐
[transform] [practice] use pytoch's torch nn. Multiheadattention to realize self attention
Global and Chinese markets of AC electromechanical relays 2022-2028: Research Report on technology, participants, trends, market size and share
Jvm-04-runtime data area heap, method area
Introduction to redis master-slave, sentinel and cluster mode
开启 Chrome 和 Edge 浏览器多线程下载
Neon global and Chinese markets 2022-2028: Research Report on technology, participants, trends, market size and share
阿特拉斯atlas扭矩枪 USB通讯教程基于MTCOM
Didi off the shelf! Data security is national security
[transform] [NLP] first proposed transformer. The 2017 paper "attention is all you need" by Google brain team
[pytorch learning notes] transforms
Leasing cases of the implementation of the new regulations on the rental of jointly owned houses in Beijing
Explanation of time complexity and space complexity
Besides lying flat, what else can a 27 year old do in life?
Matlab r2011b neural network toolbox precautions
视觉上位系统设计开发(halcon-winform)-6.节点与宫格
[attention mechanism] [first vit] Detr, end to end object detection with transformers the main components of the network are CNN and transformer
The markdown file obtains the pictures of the network and stores them locally and modifies the URL
. Net six design principles personal vernacular understanding, please correct if there is any error
5-1 blocking / non blocking, synchronous / asynchronous
Mysql报错:[ERROR] mysqld: File ‘./mysql-bin.010228‘ not found (Errcode: 2 “No such file or directory“)