[ODE] Re: libdrawstuff undefined reference
Pablo Barbáchano
pablobarbachano at yahoo.es
Tue Mar 4 11:46:01 2003
On Tue, Mar 04, 2003 at 10:10:00AM -0800, Jason
Robertson wrote:
> 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
>
Not really sure, but try this....
-lmingw32 -ldrawstuff -lode -lglu32 -lopengl32
I think the linker likes libraries this way:
``higher-level'' libraries first, so it can resolve
the lower level
symbols at the end...
Of course, I can be totally wrong... but you lose
nothing trying...
>
> 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/
> _______________________________________________
> ODE mailing list
> ODE@q12.org
> http://q12.org/mailman/listinfo/ode
___________________________________________________
Yahoo! Móviles
Personaliza tu móvil con tu logo y melodía favorito
en http://moviles.yahoo.es