From: Chris Frolik Newsgroups: comp.os.msdos.djgpp Subject: Re: streams question Date: Wed, 30 Jul 1997 14:23:13 -0500 Organization: IndyNet - Indys Internet Gateway (info AT indy DOT net) Lines: 21 Message-ID: <33DF94A1.77EA@indy.net> References: <01bc9cbd$b396fca0$783eac89 AT rnd049 DOT rnd> NNTP-Posting-Host: ip91-132.ts.indy.net 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 Stephen Lohning wrote: > > Does any body know what I am doing wrong, > I get undefined reference to cout and ostream > I presume that I am missing a env variable some where > Any help would be appreciated > > Thanks > > #include > void main(int argc, char **argv ) > { > cout << "Hello world! \n"; > } Assuming that you have installed all of the neccesary components for C++, then you need to link the C++ libraries. (The readme.1st file has information on this). Simply link with gxx instead of gcc. -Chris Frolik frolikcc AT indy DOT net