Hi guys!
I'm dealing with a very interesting new problem today:
Setting up Eclipse for OpenGL (on a Mac OS X10.6)
I've created a simple OpenGL program to begin with - however it is not compilable.
The header looks the following:
I get the following syntax error within the editor:Code:#include <stdio.h> #include <stdlib.h> #include <GLUT/glut.h> ....
And after the build, I receive even more errors:Unresolved inclusion: <GLUT/glut.h>
There seems to be a linking problem. Eclipse isn't able to recognize the header files and thus the OpenGL code.Undefined symbols:
"_glEnd", referenced from:
_display in hello.o
"_glFlush", referenced from:
_display in hello.o
......
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [Hello] Error 1
**** Build Finished ****
I tried troubleshooting using the suggestions from the following link, but things didn't work out.
Any Suggestions?