GCC编译遇到如下的错误,可能是因为在编译时没有指定-fPIC,记住:-fPIC即是编译参数,也是链接参数: relocation R_x86_64_32S against `vtable for CMyClass` can not be used when making a shared object