首页 > 学院 > 开发设计 > 正文

解决 liblog4cpp.a: could not read symbols: Bad value

2019-11-08 01:49:17
字体:
来源:转载
供稿:网友

将 liblog4cpp.a 链接进一个 so, 编译时出现 :

liblog4cpp.a(RollingFileAppender.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC

重新编译log4cpp

$ ./configure --enable-shared CFLAGS=-fPIC CXXFLAGS=-fPIC $ make -j8
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表