gcc 编译隐藏符号

strip libtest.so --strip-unneeded  --keep-symbol=libtest

-l 指定链接库名
-L 指定编译时链接库路径
-Wl,-rpath指定程序执行时加载库路径
-I 指定编译时头文件路径

你可能感兴趣的:(c/c++)