Linux 动态链接库包含静态链接库的方法
2024-10-21 19:27:03
今天老司机们在讨论一个编译问题 A是一个静态库 C是一个动态库 B是运行程序,能不能将A打包到C 然后B只需要链接C 就可以了。
这个问题我以前在出来zlib库版本冲突的时候有点印象,所以写了个测试例子,放在了 github 上,地址:
https://github.com/raoshaoquan/a
https://github.com/raoshaoquan/b
https://github.com/raoshaoquan/c
结论是: 可以
记得包含编译选项 -fPIC
最新文章
- ABP源码分析三十九:ABP.Hangfire
- 2014 网选 5007 Post Robot(暴力或者AC_自动机(有点小题大作了))
- [C#基础]Func和Action学习
- unity3d Hair real time rendering 真实头发实时渲染(转)
- Oracle 10G (Linux) 冷备恢复
- POJ 1778 All Discs Considered(拓扑排序)
- dede 如何去除[field:title/]里面出现的b标签
- HTML5-黑客帝国2D
- hdu 4540 威威猫系列故事——打地鼠 dp小水题
- 用js,css3 做的一个球
- ubuntu15.10 安装 virtualbox5.0
- ROS常用三維機器人仿真工具Gazebo教程匯總
- springboot中访问jsp文件方式
- GPL_LGPL
- Git笔记:Git介绍和常用命令汇总
- -bash: brew: command not found
- NuGet 控制台代码
- 理解RESTFul和SOA
- K2 BPM介绍(1)
- WMRouter:美团外卖Android开源路由框架
热门文章
- Rete_algorithm
- However, a general purpose protocol or its implementation sometimes does not scale very well.
- ctf百度杯十二月场what_the_fuck(一口盐汽水提供的答案)
- [报错] Xcode Error-Could not insert new outlet connection: Could not find any information for the class named ";xxx";
- Spark源码分析 – Deploy
- HBase简介及集群安装
- 吉哥系列故事——完美队形II---hdu4513(最长回文子串manacher)
- Git 使用vi或vim
- 使用Custom Draw优雅的实现ListCtrl的重绘
- servlet实现多文件打包下载