I\'m a complete beginner to Apple\'s Xcode, but I have followed the Xcode documentation and the advice of a few related questions without success.
I installed GMP to
There's a few things you have to set up in your Xcode project. For example, I have gmp installed in /opt/gmp/5.0.2 and I will use that as an example. The actual library is installed into /opt/gmp/5.0.2/lib and the header files into /opt/gmp/5.0.2/include. When installing the library setting the --PREFIX flag to /opt/gmp/5.0.2 would handle this automatically. If you don't set this flag the prefix is usually set to /usr/local by default.
/opt/gmp/5.0.2/include./opt/gmp/5.0.2/lib.Since the header search path has been set, you should now be able to include the header file like this:
#include
Of course, replace /opt/gmp/5.0.2 with the PREFIX path you used when you installed gmp.
Lastly, you typically don't install libraries to /usr/local/bin, you would install to /usr/localand let any binaries be installed into bin while libraries like these would be installed into lib. Of course any path scheme would work, I usually recommend /opt/ since it allows me to keep better track of what I have installed and have multiple versions of the same libraries and tools without having to deal with collisions.