摘要: 一,编写动态库源文件 alg.h alg.cpp 二,编写测试文件 main.cpp 三,编译动态库 g++ -c -fPIC alg.cpp g++ -shared -fPIC -o libAlg.so alg.o 说明: fPIC 作用于编译阶段,告诉编译器产生与位置无关代码(Position- 阅读全文
posted @ 2018-07-19 10:52 郭流水 阅读(463) 评论(0) 推荐(0) 编辑