静态库是在编译时需要的库。

1. 建立一个静态库

[arm@localhost gcc]#arm­linux­ar ­r libhello.a h1.o h2.o

2. 为静态库建立索引

[arm@localhost gcc]#arm­linux­ar ­s libhello.a [arm@localhost gcc]#arm­linux­ranlib libhello.a

3. 由静态库产生可执行文件

[arm@localhost gcc]#arm­linux­gcc ­o hello hello.c ­lhello ­L./ [arm@localhost gcc]#arm­linux­gcc ­o hello hello.c libhello.a hello 文件可以直接拷贝到/tmp 目录下运行,不需 libhello.a.

最新文章

  1. CentOS 7如何连接无线网络
  2. Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/Type
  3. JSON取值前判断
  4. Flask中mongodb实现flask_login保持登录
  5. css去掉a标签点击后的虚线框(转自网络)
  6. C# 创建线程的简单方式:异步委托 .
  7. macOS10.12允许所有来源设置
  8. Python3 内建模块 hashlib、itertools、HTMLParser、urllib
  9. ASP.NET基于donetCHARTING的自动报表
  10. git 使用笔记(三)-分支的使用
  11. 孙弘与Masa Maso 做互联网最贵的衬衫(2)_人物对话_中国时尚品牌网
  12. IIS虚拟目录与UNC路径权限初探
  13. ORACLE 11g 静默安装
  14. 【20171026早】alert(1) to win - 第六、七、八题
  15. anaconda的fish shell支持
  16. Storm入门(一)原理介绍
  17. mysql 开发进阶篇系列 15 锁问题 (总结)
  18. 使用gradle命令代替CUBA Studio,启动项目
  19. WPF Binding Mode,UpdateSourceTrigger
  20. 自己定义控件-DragButton

热门文章

  1. 2、Android自动测试之Monkey工具
  2. Front Page
  3. transport error 202: bind failed: Address already in use
  4. mybatis自动生成代码工具(逆向工程)
  5. 2变量与基本类型之const限定符
  6. Mycat搭建负载均衡,读写分离的Mysql集群
  7. 使用sql对比Mysql中数据库2个表结构
  8. 36. 解决线程问题方式一(同步代码块synchronized)
  9. [原创] Java 流布局管理器 FlowLayout
  10. thinkphp自动创建目录