Mail Archives: djgpp/1997/04/18/14:39:47
I believe the errors are due to that you link the same .o-file
twice.. Remove one of them..
| gxx -g3 -fno-implicit-templates -fhandle-exceptions -I. -I../ -I./include
| -o ugltest ugltest.cc universe.o smath.o timer.o oolist.o
| input.o llist.o inilib.o ugl_bitmap.o ugl_view.o
| ugl_desktop.o uobject.o vertex.o vertex.o vector.o object.o
^^^^^^^^^^^^^^^^^
| ugl_window.o ugl_window.o ugl_palette.o ugl_screen.o ugl_component.o
^^^^^^^^^^^^^^^^^^^^^^^^^
| ugl_container.o -L../ -lalleg
| ugl_desktop.o: In function `UGL_DESKTOP::UGL_DESKTOP(void)':
| ugl_desktop.cc:5: undefined reference to `UGL_VIEW::UGL_VIEW(int, int, int,
| int)'
| ugl_desktop.o: In function `__throw':
| ugl_desktop.cc:16: undefined reference to `UGL_VIEW::Translate(int, int)'
| ugl_desktop.cc(.text+0x248): undefined reference to `UGL_VIEW::SetOrigin(int
| , int)'
hmm maybe put ugl_view _after_ ugl_desktop on the commandline? A
normal ld does only a one pass scan for symbols if my memory doesn't
fool me too much..
Guess a better commandline would be something like:
gxx -g3 -fno-implicit-templates -fhandle-exceptions -I. -I../ -I./include \
-o ugltest ugltest.cc universe.o smath.o timer.o oolist.o input.o \
llist.o inilib.o ugl_bitmap.o ugl_desktop.o ugl_view.o uobject.o \
vertex.o vector.o object.o ugl_window.o ugl_palette.o ugl_screen.o \
ugl_component.o ugl_container.o -L../ -lalleg
/Andy
- Raw text -