今天老司机们在讨论一个编译问题  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

最新文章

  1. ABP源码分析三十九:ABP.Hangfire
  2. 2014 网选 5007 Post Robot(暴力或者AC_自动机(有点小题大作了))
  3. [C#基础]Func和Action学习
  4. unity3d Hair real time rendering 真实头发实时渲染(转)
  5. Oracle 10G (Linux) 冷备恢复
  6. POJ 1778 All Discs Considered(拓扑排序)
  7. dede 如何去除[field:title/]里面出现的b标签
  8. HTML5-黑客帝国2D
  9. hdu 4540 威威猫系列故事——打地鼠 dp小水题
  10. 用js,css3 做的一个球
  11. ubuntu15.10 安装 virtualbox5.0
  12. ROS常用三維機器人仿真工具Gazebo教程匯總
  13. springboot中访问jsp文件方式
  14. GPL_LGPL
  15. Git笔记:Git介绍和常用命令汇总
  16. -bash: brew: command not found
  17. NuGet 控制台代码
  18. 理解RESTFul和SOA
  19. K2 BPM介绍(1)
  20. WMRouter:美团外卖Android开源路由框架

热门文章

  1. Rete_algorithm
  2. However, a general purpose protocol or its implementation sometimes does not scale very well.
  3. ctf百度杯十二月场what_the_fuck(一口盐汽水提供的答案)
  4. [报错] Xcode Error-Could not insert new outlet connection: Could not find any information for the class named "xxx"
  5. Spark源码分析 – Deploy
  6. HBase简介及集群安装
  7. 吉哥系列故事——完美队形II---hdu4513(最长回文子串manacher)
  8. Git 使用vi或vim
  9. 使用Custom Draw优雅的实现ListCtrl的重绘
  10. servlet实现多文件打包下载