Compile OpenGL window

I am following the tutorial:
http://www.opengl-tutorial.org/beginners-tutorials/tutorial-1-opening-a-window/
for making a window using OpenGL in Xcode. I am including:
#include "GL/glew.h"
#include <OpenGL/gl3.h>
#include <GLFW/glfw3.h>
#include "glm/glm.hpp"

This is the error I get:

1
2
3
4
5
Undefined symbols for architecture x86_64:
  "_glewInit", referenced from:
      _main in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Can someone tell me what to do?
Header Search Paths: usr/local/include
Library Search Paths: /opt/local/lib
Either grab the 64-bit versions of the glew libraries and .so's or compile your project as a 32-bit app.
Topic archived. No new replies allowed.