解决ldconfig 无法ld.so.Cache问题
来源:互联网 发布:桌面设计软件 编辑:程序博客网 时间:2024/05/20 13:11
生成共享库
gcc -fPIC -shared -Wl,-soname,lib.so.1 -o lib.so.1.2.1 mylib.o
生成共享库,关联real name 和soname 。
gcc -g -Wall -fPIC -c hello.c -o hello.o
gcc -shared -W,soname,-libhello.so.0 -o libhello.so.0.0.0 hello.o
将会生成共享库libhello.so.0.0.0.
可以用系统提供的工具查看共享库的头:
readelf -d libhello.so.0.0.0 | grep libhello
ox00000000000e(SONAME) library soname: [libhello.so.0]
阅读全文
0 0
- 解决ldconfig 无法ld.so.Cache问题
- ldconfig命令以及/etc/ld.so.cache , /etc/ld.so.conf等文件详细说明
- linux 动态装载动态库 ldd,ldconfig,ld.so.conf, ld.so.cache
- linux 动态装载动态库 ldd,ldconfig,ld.so.conf, ld.so.cache
- /etc/ld.so.conf 和 ldconfig和/etc/ld.so.cache和LD_LIBRARY_PATH的关系
- ld.so.conf 和 ldconfig
- ld.so.conf 和 ldconfig
- /etc/ld.so.conf和ldconfig, PKG_CONFIG_PATH
- (转)/ld.so.conf ; ldconfig ; PKG_CONFIG_PATH详解
- /etc/ld.so.conf & ldconfig & PKG_CONFIG_PATH[转]
- /etc/ld.so.conf和ldconfig, PKG_CONFIG_PATH
- ldconfig与 /etc/ld.so.conf
- ldconfig与 /etc/ld.so.conf
- ldconfig与 /etc/ld.so.conf
- 函式库管理:ldconfig 与 /etc/ld.so.conf 以及 ldd
- (转)/etc/ld.so.conf和ldconfig, PKG_CONFIG_PATH
- 关系到能否成功编译 /etc /ld.so.conf ; ldconfig ; PKG_CONFIG
- 源码安装软件 pkgconfig ld.so.conf ldconfig
- Linux下undefined reference to ‘pthread_create’问题解决接触了Linux系统编程中的线程编程模块,可gcc sample.c(习惯把书上的sample代码写
- 微信公众平台接入
- Selenium启动Chrome时,加载用户配置文件
- PHP面向对象1-重载overloading
- 对数据库中的123范式的理解
- 解决ldconfig 无法ld.so.Cache问题
- Spark2.x 快速入门教程 5
- 00Python简介及开发环境搭建
- Jquery 遍历数组之$().each方法与$.each()方法介绍
- QT中的一个常见问题
- 学习笔记——JAVA动态编译
- 使用Python的Requests包模拟登陆
- java事务异常——Spring事务异常回滚,捕获异常不抛出就不会回滚
- LeetCode Algorithms 46. Permutations