delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/02/16:47:28

From: Chris Frolik <frolikcc AT indy DOT net>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 <iostream.h>
> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019