1
我安裝gmpy2這樣的:如何安裝gmpy2錯誤:「MPFR_RNDU」未申報(第一次在這個函數中使用)
yum install gmp-devel
yum install mpfr-devel
yum install libmpc-devel
,但顯示這些錯誤:
src/gmpy_mpc.c:1294: error: ‘gmpy_context’ has no member named ‘real_round’
src/gmpy_mpc.c:1294: error: ‘gmpy_context’ has no member named ‘real_round’
src/gmpy_mpc.c:1294: error: ‘gmpy_context’ has no member named ‘imag_round’
src/gmpy_mpc.c:1294: error: ‘gmpy_context’ has no member named ‘underflow’
src/gmpy_mpc.c:1294: error: ‘gmpy_context’ has no member named ‘trap_underflow’
src/gmpy_mpc.c:1294: error: ‘gmpy_context’ has no member named ‘overflow’
src/gmpy_mpc.c:1294: error: ‘gmpy_context’ has no member named ‘trap_overflow’
src/gmpy_mpc.c:1294: error: ‘gmpy_context’ has no member named ‘inexact’
src/gmpy_mpc.c:1294: error: ‘gmpy_context’ has no member named ‘trap_inexact’
..........
src/gmpy2.c:969: error: ‘MPFR_RNDU’ undeclared (first use in this function)
src/gmpy2.c:970: error: ‘MPFR_RNDD’ undeclared (first use in this function)
src/gmpy2.c:971: error: ‘MPFR_RNDA’ undeclared (first use in this function)
error: command 'gcc' failed with exit status 1
有什麼錯?我已經安裝了gmp,mpfr,mpc和他們的devel ,,, 但仍然有這麼多錯誤。爲什麼?
謝謝。它有助於。 – 2014-09-07 12:17:31