delorie.com/archives/browse.cgi | search |
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 <dj AT delorie DOT com> |
To: | djgpp AT delorie DOT com |
In-reply-to: | <u8cX7.1705$aX3.1020420243@newssvr12.news.prodigy.com> |
(findleyd AT swbell DOT net) | |
Subject: | Re: Problem with cross compile from Linux to DOS |
References: | <u8cX7.1705$aX3 DOT 1020420243 AT newssvr12 DOT news DOT prodigy DOT com> |
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 |
> /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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |