FreeGLUT linker error

I have a problem with FreeGLUT. I installed it on OS X El Capitan using homebrew: “brew install freeglut”. Later, I configured Xcode using Lazy Foo’s tutorial, and I have this error:

Undefined symbols for architecture x86_64:
“_glutMainLoopEvent”, referenced from:
Test2(int, char**) 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)

I have no idea what is wrong…

hi there,

i have given a very detailed intoduction on how to set up freeglut in my last workshop, maybe it gives you a idea: