编译charguess.so时出现的错语
发表于 : 2008-11-08 14:18
./configure
make
make install
ruby extconf.rb --with-charguess-include=../libcharguess/cpp/
ghost@ghost-laptop:~/rb/libcharguess-ruby-1.0$ make
cc -shared -o charguess.so charguess.o -L. -L/usr/lib -L. -Wl,-Bsymbolic-functions -rdynamic -Wl,-export-dynamic -lruby1.8 -lstdc++ -lcharguess -lpthread -ldl -lcrypt -lm -lc
/usr/bin/ld: /usr/local/lib/libcharguess.a(charguess.o): relocation R_X86_64_32 against `__gxx_personality_v0@@CXXABI_1.3' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libcharguess.a: could not read symbols: Bad value
collect2: ld 返回 1
make: *** [charguess.so] 错误 1
make
make install
ruby extconf.rb --with-charguess-include=../libcharguess/cpp/
ghost@ghost-laptop:~/rb/libcharguess-ruby-1.0$ make
cc -shared -o charguess.so charguess.o -L. -L/usr/lib -L. -Wl,-Bsymbolic-functions -rdynamic -Wl,-export-dynamic -lruby1.8 -lstdc++ -lcharguess -lpthread -ldl -lcrypt -lm -lc
/usr/bin/ld: /usr/local/lib/libcharguess.a(charguess.o): relocation R_X86_64_32 against `__gxx_personality_v0@@CXXABI_1.3' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libcharguess.a: could not read symbols: Bad value
collect2: ld 返回 1
make: *** [charguess.so] 错误 1