Centos开发小计

1.

生成静态库,linux下库的规则是lib开头

g++ -c code.cpp
ar cr libcode.a code.o
原文地址:https://www.cnblogs.com/studywithallofyou/p/11346379.html