arm-linux-ar 和 arm-linux-ranlib 的使用
2024-09-06 07:45:04
静态库是在编译时需要的库。
1. 建立一个静态库
[arm@localhost gcc]#armlinuxar r libhello.a h1.o h2.o
2. 为静态库建立索引
[arm@localhost gcc]#armlinuxar s libhello.a [arm@localhost gcc]#armlinuxranlib libhello.a
3. 由静态库产生可执行文件
[arm@localhost gcc]#armlinuxgcc o hello hello.c lhello L./ [arm@localhost gcc]#armlinuxgcc o hello hello.c libhello.a hello 文件可以直接拷贝到/tmp 目录下运行,不需 libhello.a.
最新文章
- CentOS 7如何连接无线网络
- Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/Type
- JSON取值前判断
- Flask中mongodb实现flask_login保持登录
- css去掉a标签点击后的虚线框(转自网络)
- C# 创建线程的简单方式:异步委托 .
- macOS10.12允许所有来源设置
- Python3 内建模块 hashlib、itertools、HTMLParser、urllib
- ASP.NET基于donetCHARTING的自动报表
- git 使用笔记(三)-分支的使用
- 孙弘与Masa Maso 做互联网最贵的衬衫(2)_人物对话_中国时尚品牌网
- IIS虚拟目录与UNC路径权限初探
- ORACLE 11g 静默安装
- 【20171026早】alert(1) to win - 第六、七、八题
- anaconda的fish shell支持
- Storm入门(一)原理介绍
- mysql 开发进阶篇系列 15 锁问题 (总结)
- 使用gradle命令代替CUBA Studio,启动项目
- WPF Binding Mode,UpdateSourceTrigger
- 自己定义控件-DragButton