Linux learning jottings(2)-static or dynamic library
2016-04-02 16:03
567 查看
function library is divided into static library and dynamic library.
0x00. static function library
it was compiled into target file, so, its not needed at runtime.Obviously, when the static library modified, you should recompile the application.
for example:
# Makefile hello: main.c libhello.a gcc -o hello main.c -L. -lhello libhello.a: hello.o ar cr libhello.a hello.o hello.o: hello.c gcc -c hello.c
libhello.a removed or not does not make any difference on the running of "hello"
0x01. dynamic function library
create dynamic function librarygcc -shared -fPCI -o libhello.so hello.o
0x02.
相关文章推荐
- Webbench-1.5开源软件工具源码深度剖析
- linux内核分析 第六周读书笔记
- Linux学习笔记<四>
- 记录archlinux中安装pcl的大致流程
- CentOS上JDK的安装与环境变量的配置
- linux系统调用号的定义路径
- [置顶] 教你如何在linux操作系统下玩【俄罗斯方块】高清+语音教程
- linux基础之公共NTP服务器
- centos 7 安装JDK (Linux安装jdk)
- centos 7 安装JDK (Linux安装jdk)
- Linux中实现多网卡绑定总结
- Linux服务之SSH
- linux基础之常用公共DNS地址
- Linux learning jottings(1)-system directory
- Linux用户空间的启动(一)
- 不装mono,你的.NET程序照样可以在Linux上运行!
- Linux内核分析实验六
- linux多线程编程书籍推荐:linux大牛之路从这几本书开始总结
- 最后的CentOs4 yum源
- CentOS下yum的使用及配置