当前位置: 技术问答>linux和unix
请教一个在64位计上编译的问题!
来源: 互联网 发布时间:2016-02-24
本文导语: 请教一个在64位计上编译的问题! 编译时出现如下错误: /usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtbeginT.o: relocation R_X86_64_32 against `__DTOR_END__' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x...
请教一个在64位计上编译的问题!
编译时出现如下错误:
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtbeginT.o: relocation R_X86_64_32 against `__DTOR_END__' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtbeginT.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
请问,应该如何解决呢?
在网上查了很久,用过一些办法,都没什么什么用。
编译时出现如下错误:
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtbeginT.o: relocation R_X86_64_32 against `__DTOR_END__' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtbeginT.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
请问,应该如何解决呢?
在网上查了很久,用过一些办法,都没什么什么用。
|
64位机装个64位系统,OK啦