From: G DOT DegliEsposti AT ads DOT it To: djgpp AT delorie DOT com Message-ID: Date: Wed, 24 Dec 1997 10:20:48 +0100 Subject: Re: problem to compile with DJGPP Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Precedence: bulk >I try to make little class in C++ to test makefile and compilation with >DJGPP. This little class don't link and I don't what is the reason of >this problem. [...] >gxx -o test main.o test.o \ > >main.o(.text+0xc5):main.cc: undefined reference to `somme' >main.o(.text+0xf7):main.cc: undefined reference to `soust' >make.exe: *** [test] Error 1 The linker is one-pass, so when it links main it doesn't know where somme and soust are. Try this: gxx -o test test.o main.o ciao Giacomo -- Geoffroy Rivet-Sabourin Etudiant en Genie informatique Universite Laval Quebec, Canada