如何将一个纯c++文件生成.so 文件 ubuntu下生成.so文件

2025-05-11 06:32:28
推荐回答(1个)
回答1:

g++ xx.cpp -fpic -shared -o xx.so