Installing GMP in directory other than usr/local

Jonathan A. Zylstra jon at
Fri Aug 12 21:56:29 CEST 2005

Zhang, John Ruoyu (John) wrote:

>I have a general question regarding installing GMP in a directory other than usr/local. After running ./configure --prefix=/somefolder and the other commands, gcc <source.c> -lgmp would not work. I hope I haven't missed something trivial in the manual.
>Any suggestions would be greatly appreciated.
>Thanks in advance.
>John Zhang
>gmp-discuss mailing list
>gmp-discuss at
By using ld --help, you can discover that adding the parameter '-L 
/path/to/lib/' would do the trick.
In addition, this won't be found in the GMP manual, but rather a manual 
on how to compile and link programs using gcc.

J. Zylstra
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3166 bytes
Desc: S/MIME Cryptographic Signature
Url :

More information about the gmp-discuss mailing list