I downloaded gmp-6.0.0a.tar.xz
file and unzip(tar) in usr/local
directory.
As people said , I typed ./configure
, make
, make check
and sudo make install
in the gmp-6.0.0
directory.
Installing seemed fine. But when i tried to test like this
#include <stdio.h>
#include <gmp.h>
#include <gmpxx.h>
int main(int argc, const char * argv[])
{
// insert code here...
printf("Hello, World!\n");
return 0;
}
it has error that gmp.h
file not found.
I added -lgmp
to Other Linker Flags but not works.
I do not know how to deal with this kind of problem. Could anyone help?
Thank you Dietrich Epp. Now I do not have a error of not gmp.h file found but I do have gmpxx.h file not found. I don't know why..
Any suggestion???