Help requested

Ernst Berg ernst_berg at
Wed Mar 7 21:46:23 CET 2012

 These two replies solved the problem Marc


From: Marc Glisse <marc.glisse at>
To: gmp-discuss at
Cc: Ernst Berg <ernst_berg at>
Sent: Wed, March 7, 2012 12:03:51 PM
Subject: Re: Help requested

On Wed, 7 Mar 2012, Marc Glisse wrote:

> Ah, now I see why you tried -static. If you want only gmp linked statically, 
>you can use:
> -Bstatic -lgmp -Bdynamic

Oups, sorry, those are linker options, for gcc, you need to spell it:
-Wl,-Bstatic -lgmp -Wl,-Bdynamic

> or directly the file name:
> /usr/local/lib/libgmp.a

-- Marc Glisse

More information about the gmp-discuss mailing list