![](/img/trans.png)
[英]Cannot Build C Application with GCC because of undefined reference to 'deflateEnd'
[英]gcc 4.7.1 build ends with undefined reference
我正在
fortran / arith.o:在函数
gfc_mpfr_to_mpz(__mpz_struct*, __mpfr_struct*, locus*)': arith.c:(.text+0x1169): undefined reference to
mpfr_get_z_2exp的gfc_mpfr_to_mpz(__mpz_struct*, __mpfr_struct*, locus*)': arith.c:(.text+0x1169): undefined reference to
从gcc 4.7.1构建过程开始。 我正在关注
但是,我对
download_pconditions
脚本。 那就是我正在下载gcc的所有必备软件的最新版本,其中原始版本正在下载较旧的版本,因为上述链接是针对gcc 4.6给出的。 但是,它找不到与mpfr库相关的某些符号。
一个相关的谷歌搜索给了我这个线程,但是它也没有帮助我,也许其他人可以理解得与我不同:
关于如何解决此问题的任何提示?
我最近为Mountain Lion构建了gcc 4.7.1,并遵循了如何进行gcc构建的非常不错的教程。 在其中,它描述了所有必需的lib编译,包括mpfr,gmp等。 如果您正在运行linux,我认为它也将对您有效,请尝试一下:
http://solarianprogrammer.com/2012/07/21/compiling-gcc-4-7-1-mac-osx-lion/
让我知道是否有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.