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 X-Sender: eliz AT is To: Chris Barry 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 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.