Linux动态库常见问题

1.编译好库后,应用程序调用,路径明明写对了,但是编译的时候却显示xxx未定义

2.编译好了却说不能打开动态库,没有此文件

./jrtplib_test: error while loading shared libraries: libjrtp.so.3.11.2: cannot open shared object file: No such file or directory

解决:

在 /etc/ld.so.conf 中,将库的路径加上去,保存再sudo ldconfig

相关推荐
苏宸啊6 小时前
Linux权限
linux·运维·服务器
xqhoj7 小时前
Linux——make、makefile
linux·运维·服务器
张童瑶7 小时前
Linux 在线安装编译Python3.11
linux·运维·python3.11
Shi_haoliu7 小时前
SolidTime 在 Rocky Linux 9.5 上的完整部署流程
linux·运维·nginx·postgresql·vue·php·laravel
Q_21932764557 小时前
基于单片机的无线通信报警系统
单片机·嵌入式硬件
Lkygo8 小时前
LlamaIndex使用指南
linux·开发语言·python·llama
qq_254617778 小时前
nslookup 这个命令解析dns,和系统接口gethostbyname解析区别在哪?
linux·网络
布丁oo8 小时前
ESP32智能天气时钟:温湿度气压全掌控
单片机·嵌入式硬件
蝎蟹居8 小时前
GBT 4706.1-2024逐句解读系列(26) 第7.6条款:正确使用符号标识
人工智能·单片机·嵌入式硬件·物联网·安全
HIT_Weston9 小时前
100、【Ubuntu】【Hugo】搭建私人博客:元信息&翻译(一)
linux·运维·ubuntu