How to setting up Eclipse for OpenGL
Hi guys! :cool:
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:
Code:
#include <stdio.h>
#include <stdlib.h>
#include <GLUT/glut.h>
....
I get the following syntax error within the editor:
Quote:
Unresolved inclusion: <GLUT/glut.h>
And after the build, I receive even more errors:
Quote:
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 ****
There seems to be a linking problem. Eclipse isn't able to recognize the header files and thus the OpenGL code.
I tried troubleshooting using the suggestions from the following link, but things didn't work out.
Any Suggestions? :frown: