2013-02-12 3 views
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 

어떤 해결책이 있습니까?

+1

libboost_thread-gcc42-mt-1_49. * ppclinux * .a는 힌트를 제공합니다. –

+0

전이 플랫폼에서 새로운 것입니다. 힌트를 찾을 수있는 곳. 정교 할 것인가? –

+0

PPC (PowerPC) Linux 배포판이 아니라면 잘못된 아키텍처에 연결하려고합니다. x86 또는 x86-64를 원할 것입니다. –

답변

3

해결되었습니다.

문제는 라이브러리가 64 비트로 작성된 것입니다. bjam 명령을 구성하여이를 해결했습니다. 명령은 다음과 같습니다.

bjam toolset=gcc address-model=64 architecture=x86 variant=release link=static,shared --layout=versioned --build-type=complete 
관련 문제