[ODE] libdrawstuff undefined reference problems

Jason Robertson dead_alive2002 at yahoo.com
Tue Mar 4 11:14:02 2003


I got everything to build with gcc/mingw, but to build
libdrawstuff.a I had to change the include paths for
gl.h and glu.h to "GL/gl.h" and "GL/glu.h"

Everything built fine, including all the test
programs, but now when I open up my IDE (which is
dev-c++) and try to compile test_boxstack.cpp, linking
with the following options: 
-lmingw32 -lopengl32 -lglu32 -lode -ldrawstuff


I get errors like so, for each opengl command
C:\DEV-C_~1\LIB\\libdrawstuff.a(drawstuff.o)(.text+0x31ed):drawstuff.cpp:
undefined reference to `glBegin@4'

Some errors for gdi commands:
C:\DEV-C_~1\LIB\\libdrawstuff.a(windows.o)(.text+0xd9f):windows.cpp:
undefined reference to `SetPixelFormat@12'
(and I have no idea what this is)
c:\dev-c++\working_on\ode\tester\test_boxstack.o(.text+0xb3):test_boxstack.:
undefined reference to `dInfinityValue'

I find it strange that the makefile could compile it,
but now I cannot. If anyone knows what can be the fix
to this I'd greatly appreciate it.

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/