|
From: <qa...@ho...> - 2002-04-15 16:05:57
|
Hi. Can someone please help a newbie out... How do I get GLUT to work with Dev-C++?? Some usefull info: * My OS is WinXP * Dev-C++ version is 4.9.2.0 (aka v.5 beta 2) This is what I've done: * Created an empty project * Added an GLUT examplefile (cube.c ... found on= http://www.opengl.org/developers/code/glut_examples/examples/cube.c) * Put glut.h in the %DEV-C++DIR%\include\gl directory * Put glut32.lib in the %DEV-C++DIR%\lib directory * Put glut32.dll in the %WINDIR%\System32 directory * In the "Project->Project Options->Linker Options/Optional Libs or Object= files"-textfield I've written (without the quotes) "-lopengl32 -lglut32" The compilation goes just fine but I get loads of errors when linking. Here= are the first 6 of them: cube.c cube.o(.text+0x17) undefined reference to `__glutInitWithExit' cube.c cube.o(.text+0x33) undefined reference to= `__glutCreateWindowWithExit' cube.c cube.o(.text+0x57) undefined reference to `__glutCreateMenuWithExit' cube.c cube.o(.text+0x8b) undefined reference to `_imp__glBegin' cube.c cube.o(.text+0xb0) undefined reference to `_imp__glNormal3fv' cube.c cube.o(.text+0xe4) undefined reference to `_imp__glVertex3fv' What have I done wrong (or what have I forgotten)? tia /J=F6rgen |