angelpan1014

 

2

collect2: ld returned 1 exit status
ocs8:/home/panpan/C++>gcc -shared -fPCI -o libhello.so hello.o
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/http://www.cnblogs.com/http://www.cnblogs.com/x86_64-suse-linux/bin/ld: hello.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
hello.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
ocs8:/home/panpan/C++>

posted on 2012-10-24 18:06  angelpan1014  阅读(406)  评论(0编辑  收藏  举报

导航