| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
| Date: | Thu, 3 Jan 2002 08:02:27 +0200 (IST) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| X-Sender: | eliz AT is |
| To: | Chris Barry <crbarry AT mts DOT net> |
| cc: | djgpp AT delorie DOT com |
| Subject: | Re: iostream errors with the STL |
| In-Reply-To: | <0bPY7.7685$qN3.72172@news1.mts.net> |
| Message-ID: | <Pine.SUN.3.91.1020103080118.5802D-100000@is> |
| MIME-Version: | 1.0 |
| 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 |
On Wed, 2 Jan 2002, Chris Barry wrote: > Hullo. Awhile ago I wrote a tutorial on the STL. Since then I've encountered > tthe odd soul who can't compile my examples for either DJGPP or MinGW, and > it's pissing me off as much as it does them. Here's a taste of the error > messages: > > c:/djgpp/tmp\ccv8kdyh.o(.text+0x5ba):dan.cpp: undefined reference to > 'endl(ostream &)' > c:/djgpp/tmp\ccv8kdyh.o(.text+0x5c7):dan.cpp: undefined reference to 'cerr' Did you use `gpp' to compile the program? If you use `gcc', it doesn't scan the C++ libraries, and you get undefined references.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |