Open GoogleCodeExporter opened 8 years ago
how to solve the problem(SUSE 10 , 64bit)
150 mmsc106 :/home/yangsf/build_testngpp_to_install>make -f Makefile
[ 17%] Built target testngpp
[ 21%] Built target testngpp-utils
[ 23%] Built target testngpp-except
[ 32%] Built target mem-checker
Linking CXX shared module libtestngppstdoutlistener.so
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:
../except/libtestngpp-except.a(Exception.cpp.o): relocation R_X86_64_32 against
`vtable for testngpp::Exception' can not be used when making a shared object;
recompile with -fPIC
../except/libtestngpp-except.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [src/listeners/libtestngppstdoutlistener.so] Error 1
make[1]: *** [src/listeners/CMakeFiles/testngppstdoutlistener.dir/all] Error 2
Original comment by ysf...@gmail.com
on 22 May 2012 at 9:57
try to compile libtestngpp-except.a with -fPIC option.
Original comment by sinoje...@gmail.com
on 22 May 2012 at 3:32
when you use cmake, you can use like this
cmake -D CMAKE_CXX_FLAGS=-fPIC
Original comment by zhaoyg1...@gmail.com
on 22 Oct 2012 at 3:17
Original issue reported on code.google.com by
sinoje...@gmail.com
on 30 Nov 2010 at 11:12