gcc 创建库及使用

gcc -shared hello.c -o libhello.so

gcc -o test test.c -L库所在目录 -l库名

原文地址:https://www.cnblogs.com/luxiaolai/p/4236588.html