trying to use gmp
im having problems using the gmp library.
previously i did have some problems getting the c/c++ compiler working on my system but some people hear helped me out. I've installed gmp-4.1.2-185.i586.rpm now reading through the gmp manual once a mpz_t n; integer is defined before it can be used it must be initialized mpz_init (n); Ive striped the code down to just that and a clear and when i compile i get
/tmp/ccedtSdH.o(.text+0x18): In function `main':
: undefined reference to `__gmpz_init'
/tmp/ccedtSdH.o(.text+0x27): In function `main':
: undefined reference to `__gmpz_clear'
now is it something wrong with the code
#include <gmp.h>
int main()
{
mpz_t n;
mpz_init (n);
mpz_clear (n);
return (0);
}
or is there something else i need to install or is it something else
|