title: How to link glew in xcode
body: <p>I can't link glew with xcode. I have glew library is located in /usr/local/lib/libGLEW.dylib</p>
  
  <p>When i compile file in command line all right:</p>
  
  <blockquote>
    <p>g++ /usr/local/lib/libGLEW.dylib -framework OpenGL main.cpp</p>
  </blockquote>
  
  <p>But when i compile in xcode, i get error:</p>
  
  <blockquote>
    <p>'GL/glew.h' file not found</p>
  </blockquote>
  
  <p>Code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;GL/glew.h&gt;
  
  int main(int argc, const char * argv[])
  {
      // insert code here...
      std::cout &lt;&lt; "Hello, World!\n";
      return 0;
  }
  </code></pre>
  
  <p>Im linked glew with xcode</p>
  
  <p><a href="https://i.stack.imgur.com/ANq0H.png" rel="noreferrer">there screenshot</a></p>
  
  <p>OS X 10.8.4, Xcode 4.6.1</p>