使用Qt创建共享库,用到expat,遇到编译问题,求教
使用Qt创建C++共享库,用到了expat库,编译时采用添加外部库的方式,将expat库的libexpat.a和include下的头文件添加进去,编译时报错:/home/mycounter/deccker/lib/libexpat.a(xmlparse.o):relocation R_X86_64_32S against '.text' can not be used when making a shared object ; recomplie with -fPIC
请问是什么问题,有什么解决方法!