From: Andy Eskilsson Newsgroups: comp.os.msdos.djgpp Subject: Re: Another Interesting DJGPP C++ Problem Date: 18 Apr 1997 11:46:33 +0200 Organization: Telelogic AB, Sweden Lines: 36 Sender: x-aes AT vega Message-ID: References: <199704180452 DOT AAA07139 AT hcst DOT net> Reply-To: x-aes AT telelogic DOT se NNTP-Posting-Host: vega.telelogic.se Mime-Version: 1.0 (generated by tm-edit 7.101) Content-Type: text/plain; charset=US-ASCII CC: bf461 AT cleveland DOT freenet DOT edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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