如何解决“relocation truncated to fit:R_X86_64_PC32 against undefined symbol`xercesc_3_1 :: AbstractDOMParser :: adoptDocument()'” [英] How to resolve "relocation truncated to fit: R_X86_64_PC32 against undefined symbol `xercesc_3_1::AbstractDOMParser::adoptDocument()'"

查看:4086
本文介绍了如何解决“relocation truncated to fit:R_X86_64_PC32 against undefined symbol`xercesc_3_1 :: AbstractDOMParser :: adoptDocument()'”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Eclipse中构建一个使用库xerces-c-3.1.1-x86_64-linux-gcc-3.4(二进制)的C ++程序。我看到以下错误...







  1. 重新定位以适合:R_X86_64_PC32对未定义的符号xercesc_3_1 :: AbstractDOMParser :: adoptDocument()


  2. 未定义引用xercesc_3_1 :: AbstractDOMParser :: adoptDocument()







通过stackoverflow上的链接进行操作(这个GCC错误... relocation truncated to fit ...是什么意思?)和理解什么类型的错误是这个,但没有得到解决方案如何解决它。 >

环境我使用:Cygwin64在Windows8.1和Eclipse配置使用Cygwin C ++编译器。试了xerces-c-3.1.1-x86_64-linux-gcc-3.4以及xerces-c-3.1.1-x86-linux-gcc-3.4,并得到相同的错误。
我错过了什么?

我使用 libxerces-c libxerces-c-devel 从Cygwin安装(重新运行与这两个额外的包的安装程序)。我摆脱了上述错误以及信号11 [Segmentation fault] 错误。这些二进制文件被发现适合Cygwin环境。


I am trying to build a C++ program in Eclipse that uses a library xerces-c-3.1.1-x86_64-linux-gcc-3.4 (binary). I see the below errors ...


  1. relocation truncated to fit: R_X86_64_PC32 against undefined symbol xercesc_3_1::AbstractDOMParser::adoptDocument()

  2. undefined reference to xercesc_3_1::AbstractDOMParser::adoptDocument()


Gone through a link on stackoverflow (What does this GCC error "... relocation truncated to fit..." mean?) and understood what type of error is this but did not get a solution on how to resolve it.

Environment I am using: Cygwin64 on Windows8.1 and Eclipse configured to use Cygwin C++ compiler. Tried both xerces-c-3.1.1-x86_64-linux-gcc-3.4 as well as xerces-c-3.1.1-x86-linux-gcc-3.4 and got the same error. Am I missing something?

解决方案

I Solved the problem by using the libxerces-c and libxerces-c-devel from Cygwin setup (re-ran the setup with these two additional packages). I Got rid of above errors as well as signal 11 [Segmentation fault] error. These binaries are found to be suitable for Cygwin environment.

这篇关于如何解决“relocation truncated to fit:R_X86_64_PC32 against undefined symbol`xercesc_3_1 :: AbstractDOMParser :: adoptDocument()'”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆