1. Linux-(C/C++)動態鏈接庫生成以及使用(libxxx.so)
2. C++文件如何在linux下生成動態庫So,以及如何使用這個動態庫
3. c++ 發布動態.so
簡記
1. 編譯生成so庫
g++ src.cpp -fPIC -shared -o libxxx.so //使用源文件生成so庫
gcc -shared -fPIC test.o -o libtest.so //使用目標文件生成so庫
2. 使用so庫
gcc -o main main.c -L. -lmax