Installing GMP in directory other than usr/local

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


Zhang, John Ruoyu (John) wrote:

>Hi,
>
>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.
>
>Regards,
>
>John Zhang
>_______________________________________________
>gmp-discuss mailing list
>gmp-discuss at swox.com
>https://gmplib.org/mailman/listinfo/gmp-discuss
>
>
>  
>
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 : http://gmplib.org/list-archives/gmp-discuss/attachments/20050812/a4318a1a/smime.bin


More information about the gmp-discuss mailing list