PDA

View Full Version : FreeGLUT linker error



iKubik
12-16-2015, 08:01 AM
Hello,
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...

uwi2k2
12-16-2015, 11:01 PM
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:
https://www.youtube.com/watch?v=_OAYRV5fjuE

regards
uwi2k2