X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Sat, 29 Dec 2001 08:26:26 -0500 Message-Id: <200112291326.fBTDQQA18770@envy.delorie.com> From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: (findleyd AT swbell DOT net) Subject: Re: Problem with cross compile from Linux to DOS References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > /usr/local/i586-pc-msdosdjgpp/bin/ld -o testx > /usr/local/i586-pc-msdosdjgpp/lib/crt0.o > -L/usr/local/lib/gcc-lib/i586-pc-msdosdjgpp/2.8.1 > -L/usr/local/i586-pc-msdosdjgpp/lib test.o -lstdc++ -lm -lgcc -lg -lc -lgcc > test.o: In function `main': > test.cpp:2: undefined reference to `endl(ostream &)' This certainly looks right. Try running i586-pc-msdosdjgpp-nm on the libstdc++ it finds. Add -Wl,-Map,test.map to the g++ line to have it tell you exactly where it found the library (and other goodies). The two things I'm thinking of are (1) finding the wrong libstdc++.a, or (2) libstdc++.a missing stuff inside it.