From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: Problem compiling c++ program with djgpp v2.0 Date: Wed, 01 Jan 1997 13:59:27 -0800 Organization: Alcyone Systems Lines: 17 Message-ID: <32CADE3F.70B41BA9@alcyone.com> References: NNTP-Posting-Host: newton.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Nebu John Mathai wrote: '> I got this error during compilation: > > 1.cc(.text+0x1e): undefined reference to `cout' > 1.cc(.text+0x23): undefined reference to `ostream::operator<<(char con... > > Thanks for your help. Check the FAQ; this is because you're not linking in the C++ libraries. (And the error was during linking, not compilation.) -- Erik Max Francis | max AT alcyone DOT com Alcyone Systems | http://www.alcyone.com/max/ San Jose, California | 37 20 07 N 121 53 38 W &tSftDotIotE | R^4: the 4th R is respect "You must surely know if man made heaven | Then man made hell"