Original Post
-Since their is OpenGL code in the sample that has an error, I was going to put in in the OpenGl forums, but I dont think the main problem is OpenGL thus, is a "General Programming" question I am using glut.h, glu.h, gl.h, and,windows.h; and the code isnt reconizing I have the glut.h file so it can't use the OpenGl functions.Here is the errors: [Linker error] undefined reference to
__glutInitWithExit@12' [Linker error] undefined reference to __glutCreateWindowWithExit@8' [Linker error] undefined reference to `__glutCreateMenuWithExit@8' Here is the one I am wondering about mostly: C:\Program Files\Dev-Cpp\Makefile.win [Build Error] [Quaritine.exe] Error 1 Code: #include <windows.h> #include <gl/glut.h> #include <gl/glu.h> #include <gl/gl.h> void RenderScene(void) { glClear(GL_COLOR_BUFFER_BIT); glFlush(); } void SetupRC(void) { glClearColor(0.0f,0.0f, 1.0, 1.0f); } int main(int) { glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutCreateWindow("Quaritine"); glutDisplayFunc(RenderScene); SetupRC(); glutMainLoop(); } Why is thier the build error? Thanks -Mad_Koder