1

//编辑为先前的错误消失了

我已将 ppclinux 库替换为特定库。新错误出现为-

libboost_thread-gcc44-mt-1_49.a(thread.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
../../ThirdPartyLibs/boost/stage/lib/libboost_thread-gcc44-mt-1_49.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libAFE.so] Error 1

有什么解决办法吗?

4

1 回答 1

3

解决了。

问题是这些库是用 64 位构建的。配置 bjam 命令解决了它。命令如下——

bjam toolset=gcc address-model=64 architecture=x86 variant=release link=static,shared --layout=versioned --build-type=complete
于 2013-02-15T04:27:38.037 回答