|
From: Robert L. <rl...@gd...> - 2002-04-15 17:17:24
|
=20 Hi, For some reason you need to include the glut32.def file in your %/DEV-C++/lib/directory Once you do that you should be all set. =20 You can find that file at=20 http://www.cs.uofs.edu/~mpc3/cmps370/glutsetup.html =20 Good luck, Bobby =20 =20 -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of J=F6rgen Sent: Monday, April 15, 2002 12:06 PM To: dev...@li... Subject: [Dev-C++] Problem with GLUT Hi. =20 Can someone please help a newbie out... =20 How do I get GLUT to work with Dev-C++?? =20 Some usefull info: * My OS is WinXP * Dev-C++ version is 4.9.2.0 (aka v.5 beta 2) =20 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" =20 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)? =20 tia /J=F6rgen |