[MPFR] Re: gmp w/ mpfr for gcc's f95
Vincent Lefevre
vincent at vinc17.org
Wed Nov 30 00:59:24 CET 2005
On 2005-11-29 19:12:46 +0100, Patrick Pelissier wrote:
> The problem is :
>
> configure:23118: gcc -o conftest -Wall -Wmissing-prototypes -g -O2
> conftest.c -lgmp >&5
> /usr/local/bin/ld: skipping incompatible
> /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.3/../../../libgmp.so when
> searching for -lgmp
> /usr/local/bin/ld: skipping incompatible
> /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.3/../../../libgmp.a when
> searching for -lgmp
> /usr/local/bin/ld: skipping incompatible /usr/local/lib/libgmp.so when
> searching for -lgmp
> /usr/local/bin/ld: skipping incompatible /usr/local/lib/libgmp.a when
> searching for -lgmp
> /usr/local/bin/ld: cannot find -lgmp
Wouldn't other C programs have the same problem anyway?
And such programs can't use something like that:
> Try with the '--with-gmp-build' trick I told you. It should work.
So, I wonder if gmp shouldn't use something like pkg-config
(though its design is somewhat buggy). At least, adding
`pkg-config --cflags gmp` to CFLAGS when the first try to
compile and link with GMP fails wouldn't hurt.
--
Vincent Lefèvre <vincent at vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
More information about the gmp-discuss
mailing list