16.15 制作so文件时如何指定引出哪些符号 Q: 制作so文件只想引出几个函数,其余函数不引出,就像Windows下dll一样。 A: jasss@SMTH 2005-05-16 一般来说至少有四种办法: 1) static 2) __attribute__ ((visibility("hidden"))) 3) Export Maps 4) libtool: -export-symbols A: Ulrich Drepper 2005-01-22 更详细的介绍参看下文: How To Write Shared Libraries http://people.redhat.com/drepper/dsohowto.pdf