2015年9月1日

Linux下g++编译与使用静态库和动态库(仅命令)

摘要: 生成静态库:ar c[rv] libtarget.a src1.o src2.o ...生成动态库:g++ -shared -fPIC src1.o src2.o -o libtarget.so使用静态库:g++main.cpplibsrc.a-o target使用动态库:g++main.cpp-L... 阅读全文

posted @ 2015-09-01 15:19 Wrench 阅读(1267) 评论(0) 推荐(0) 编辑

导航