|
From: Joseph, B. & E. V. <bl...@ho...> - 2001-10-06 21:26:35
|
Has anyone had any luck using glut with Dev-C++ (or MinGW)? I am trying to go through the simple program in the OpenGL Programming = Guide = (http://ask.ii.uib.no/ebt-bin/nph-dweb/dynaweb/SGI_Developer/OpenGL_PG), = but keep getting a linker error: d:\programming\personal\glut\glutmain.o(.text+0x17):glutmain.cpp: = undefined reference to `__glutInitWithExit@12' d:\programming\personal\glut\glutmain.o(.text+0x3b):glutmain.cpp: = undefined reference to `__glutCreateWindowWithExit@8' d:\programming\personal\glut\glutmain.o(.text+0x67):glutmain.cpp: = undefined reference to `__glutCreateMenuWithExit@8' I have put this line in the "Project Options->Further object files or = linker options" box: -lopengl32 -lglu32 -lglaux -lglut -lglut32 And all of this for inculdes: #include <windows.h> // Header File For Windows #include <gl\gl.h> // Header File For The OpenGL32 Library #include <gl\glu.h> // Header File For The GLu32 Library #include <gl\glaux.h> // Header File For The Glaux Library #include <stdio.h> #include <stdlib.h> #include <gl\glut.h> Thank you! |