gcc4.3 configuring problems with mpfr

Jim Wilson wilson@tuliptree.org
Wed Apr 2 06:19:00 GMT 2008


Swapna Pawar wrote:
> configure:4542: checking for correct version of mpfr.h
> configure:4573: i386-pc-mingw32msvc-gcc -o conftest.exe -O2
> -I/home/manjunathm1/gmp/prefix/include
> -I/home/manjunathm1/mpfr/prefix/include   conftest.c  -L/h
> ome/manjunathm1/gmp/prefix/lib -L/home/manjunathm1/mpfr/prefix/lib
> -lmpfr -lgmp >&5
> /tmp/cc9dzbXZ.o(.text+0x23):conftest.c: undefined reference to
> `mpfr_init'

Are the -I and -L options correct?

Run the command by hand with --save-temps and look at the .i file and 
verify that the right header files got included.

Run the command by hand with -Wl,--verbose and verify that the right 
libraries got linked in.

Look at the installed libraries and make sure that they contain the 
functions in question, i.e. make sure that they were built and installed 
correctly.

Maybe try installing gmp and mpfr in the same place instead of in two 
different places?

Jim



More information about the Gcc mailing list