title: Install GMP library on Mac OS X 10.9 and Xcode
body: <p>My question is as simple as the title. I have a Macbook Pro with OS X Mavericks (10.9.4) and Xcode (5.1.1). I need to install the GMP arbitrary precision libraries so that I can just get to write GMP-enabled programs from within Xcode.</p>
  
  <ul>
  <li>I downloaded the package from the official website</li>
  <li>I extracted it to my desktop</li>
  <li><code>./configure --prefix=/usr/local --enable-cxx</code></li>
  <li><code>make</code></li>
  <li><code>make check</code></li>
  <li><code>sudo make install</code></li>
  </ul>
  
  <p>But when I go to Xcode and just <code>#include &lt;gmpxx.h&gt;</code> it doesn't find it. Also adding -lgmp to my linker flags causes an error.</p>
  
  <p>I also tried using homebrew with <code>brew install gmp</code> but that didn't work either (same symptohms)</p>
  
  <p>What is the correct way to solve this problem?</p>