I try to link the gmp library with Xcode. This is what I (with the help of multiple stackoverflow articles) did:
-lgmp
. I also tried -lgmpxx
.<stdio.h>
and <gmp.h>
.After all I still got the error: " 'gmp.h' file not found ", which indicates that the library is not properly linked. I don't see what I am doing wrong. Suggestions would be appreciated. Thanks in advance!
To get C++ support, you need to run
./configure --enable-cxx
plus any other desired/required options, see https://gmplib.org/manual/Build-Options.html, before running
make install