Build Static and Dynamic Libary in Linux

Build Static Libary

ar ru xxx.a *.o
ranlib xxx.a//not necessary

Build  Dynamic Libary 

g++ -shared -fPIC -o xxx.so *.o

 

posted @ 2015-06-01 23:43  fosmj  阅读(189)  评论(0编辑  收藏  举报