gcc 4.3.2: statically link mpfr?
Jennifer Cranfill
cranfill@imageworks.com
Fri Sep 19 22:02:00 GMT 2008
Andrew Haley wrote:
> Jennifer Cranfill wrote:
>> I get this error when I try to use it on a machine that does not have
>> the latest mpfr:
>> /opt/gcc432m64/bin/g++ hello.cpp
>> /opt/gcc432m64/libexec/gcc/x86_64-unknown-linux-gnu/4.3.2/cc1plus: error
>> while loading shared libraries: libmpfr.so.1: cannot open shared object
>> file: No such file or directory
>>
>> Is it possible to statically link mpfr into ccplus? I tried configure
>> with --disable-shared, that did not change the error.
>
> It's easiest just to remove the shared libmpfr.so.1 when you build gcc;
> it'll find the static library.
That worked perfectly!
Thanks to everyone for all the help.
--
Jennifer Cranfill
More information about the Gcc-help
mailing list