From: Endlisnis Newsgroups: comp.os.msdos.djgpp Subject: Re: Error Date: Sat, 12 Sep 1998 13:18:04 -0300 Organization: NBTel Internet Lines: 18 Message-ID: <35FA9EBC.DC0BA030@unb.ca> References: <35f8eaaa DOT 4068244 AT news DOT cableinet DOT net> NNTP-Posting-Host: fctnts07c20.nbnet.nb.ca 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 Precedence: bulk Darian Linehan wrote: > Hi, I have just downloaded and installed DGJPP. Every time I try and > compile a program (the basic "Hello World!" prog) > I get the following error: > > c:/utils/dgjpp/tmp\cccqedcf(.text+0x19):hello.cpp: undefined reference > to `cout' > c:/utils/dgjpp/tmp\cccqedcf(.text+0x1e):hello.cpp: undefined reference > to `ostream::operator<<(char const *)' What commandl-line are you using to compile? You may have to add "-lstdcxx" to the end of it for it to work for C++ programs. -- (\/) Endlisnis (\/) s257m AT unb DOT ca Endlisnis AT GeoCities DOT com Endlis AT nbnet DOT nb DOT ca