Hi all!
As I said in a previous post, I'm working with HUGE numbers, and it was suggested to me to try GMP.
I have installed it on /usr/local/gmp-4.1.4 (with "./configure" and then "make") as it was said to be de default location. The installing procedures seemed to be ok. The validation tests were fine too.
So, I've wrote the following test.c file:
Code:
#include <stdio.h>
#include <gmp.h>
int main (){
mpz_t i;
return;
}
At first, I tried to compile with
gcc -o test test.c -lgmp
but I got a "gmp.h - File not found"
Then, I tried
gcc -o test test.c -I /usr/local/gmp-4.1.4 -lgmp
and
gcc -o test test.c -I /usr/local/gmp-4.1.4 -L /usr/local/gmp-4.1.4 -lgmp
and
gcc -o test test.c -I /usr/local/gmp-4.1.4/ -L /usr/local/gmp-4.1.4/lib -lgmp
but for all of them I got a "cannot find -lgmp"
As you can probably see, I'm not a C expert, so I would like to apologize if I am doing something obviously wrong. But the fact is that I am not able to simply compile that code...
PLEASE, HELP!!!
Thanks in advance,
Bruno