-
Notifications
You must be signed in to change notification settings - Fork 13
prog_020
Zhang Jc edited this page Sep 4, 2018
·
2 revisions
比如有test.c和test.h文件:
# 这句生成test.o
gcc -shared -fPIC -DPIC -c test.c
# 这句生成libtest.so 动态库
ld -shared test.o -o libtest.so
[1] https://blog.csdn.net/linfengfeiye/article/details/6946407
本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议进行许可。
Wiki: wiki.jcix.top ~聚沙成塔~ Blog: blog.jcix.top