Is this error message related to the installation of gmp?
Torbjorn Granlund
tg at gmplib.org
Tue Sep 20 09:55:32 CEST 2011
Tie Cheng <chengtie at gmail.com> writes:
Hello all,
I am installing a library on my machine, and I have got this message:
gcc -Wcast-qual -Wswitch -Werror-implicit-function-declaration -Wall -Wextra
-Wundef -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wno-unused
-std=c99 -U__STRICT_ANSI__ -g -O0 -UNDEBUG -I../mlgmpidl -I../apron
-I/usr/local/include -I/usr/local/include -I/usr/lib/ocaml
-I/usr/local/lib/ocaml -c -o scalar_caml_debug.o scalar_caml.c
In file included from scalar_caml.c:23:0:
../mlgmpidl/gmp_caml.h: In function ‘camlidl_mpfr_rnd_t_c2ml’:
../mlgmpidl/gmp_caml.h:49:3: error: ‘GMP_RND_MAX’ undeclared (first use in
this function)
../mlgmpidl/gmp_caml.h:49:3: note: each undeclared identifier is reported
only once for each function it appears in
../mlgmpidl/gmp_caml.h: In function ‘camlidl_mpfr_rnd_t_ml2c’:
../mlgmpidl/gmp_caml.h:52:24: error: ‘GMP_RND_MAX’ undeclared (first use in
this function)
make[1]: *** [scalar_caml_debug.o] Error 1
Does anyone know if it is related to the installation of gmp?
GMP_RND_MAX is not part of the documented interface of GMP. In fact, I
don't think we ever used it internally either.
Somebody clearly thought it was clever to define symbols that will be
confused with GMP's symbols.
--
Torbjörn
More information about the gmp-discuss
mailing list