From: peuha AT cc DOT helsinki DOT fi (Esa A E Peuha) Newsgroups: comp.os.msdos.djgpp Subject: Re: undefined reference to 'cout' Date: 27 Feb 1997 07:58:01 GMT Organization: University of Helsinki Lines: 20 Message-ID: <5f3eq9$o66@oravannahka.Helsinki.FI> References: <330f817b DOT 1519135 AT news DOT demon DOT co DOT uk> Reply-To: Esa DOT Peuha AT helsinki DOT fi NNTP-Posting-Host: kruuna-ether.helsinki.fi Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp eNeRGy SouRCe (energy AT ricb DOT demon DOT co DOT uk) wrote: [code snipped] : When I compile the above program, or any program using : input/output stream, I get the following messages. Anyone : know what the prob could be? : c:/djgpp/tmp\ccdaaaaa(.text+0x10):test.cc: undefined reference : to`cout' : c:/djgpp/tmp\ccdaaaaa(.text+0x15):test.cc: undefined reference to : `ostream::operator<<(int)' You must also link the iostream library (see FAQ about using gxx instead of gcc). -- Esa Peuha student of mathematics at the University of Helsinki http://www.helsinki.fi/~peuha/