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
posted @ 2015-09-01 15:19
posted @ 2015-08-06 23:23