Building GMP 5.0.2 & linking Nettle 2.4 to it (missing '__gmpz_getlimbn' symbol)

Marc Glisse marc.glisse at
Tue Nov 8 16:58:24 CET 2011

On Tue, 8 Nov 2011, Morgan Aldridge wrote:

>    ld warning: in /usr/local/lib/libgmp.dylib, file is not of
> required architecture

Now there's a nice and clear message about what's wrong.
Looks like you have a 64bit GMP and are trying to compile a 32bit app 
using it (your compiler likely defaults to 32 bits).

If you want a 32bit GMP, read the doc. If you want a 64bit Nettle, ask 

Marc Glisse

More information about the gmp-discuss mailing list