Golang调用动态库so
测试动态库 test_so.h ``` int test_so_func(int a,int b); ``` test_so.c #include "test_so.h" ``` int test_so_func(int a,int b) { return a*b; } ``` 生成so ``` gcc -shared ./test_so.c -o test_so.so ``` 复制so文件到golang项目目录 golang项目目录,建立 load_so.h ``` int do_test_so_func(int a,int b); ``` load_so.c ``` #include "load_so.h" #include