title: Setup Xcode and FLTK
body: <p>Errors I get when trying to build the <a href="http://www.fltk.org/doc-1.1/basics.html" rel="nofollow noreferrer">first block of code on this page</a> under Xcode</p>
  <blockquote>
  <p>Undefined symbols for architecture x86_64:</p>
  <p>&quot;fl_define_FL_SHADOW_LABEL()&quot;, referenced from:</p>
  <pre><code> _main in main.o
  </code></pre>
  </blockquote>
  <p>I installed FLTK with homebrew by <code>brew install FLTK</code> and there were no errors:</p>
  <p><code>/usr/local/Cellar/fltk/1.3.2_1: 315 files, 5.8M, built in 93 seconds</code></p>
  <p>I realize this problem has been <a href="https://stackoverflow.com/questions/22372228/installing-fltk-on-xcode-5">asked before</a>, but the answer</p>
  <blockquote>
  <p>You need to install it first as it's not on Mac OS X, using something like homebrew/macports/manually which will provide you with an installed copy that can be referenced using the <code>User Header Search Paths</code> and <code>Library Search Paths</code>, as well as referencing the fltk library(/ies) in the <code>Linked Frameworks and Libraries</code></p>
  </blockquote>
  <p>did not work for me or I got the specific <em>file paths</em> wrong. I have tried Xcode 5.1.1 and 6.0 and both have the same problem.</p>
  <p>I have attached a screenshot of my build settings.
  <img src="https://i.stack.imgur.com/amoAH.png" alt="Build Settings on Xcode" /></p>