delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/28/08:16:33

From: "Craig" <Craig DOT Hollowell AT btinternet DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problem with cout
Date: 28 Aug 1998 12:00:57 GMT
Organization: BT Internet
Lines: 23
Message-ID: <01bdd27a$95f757a0$LocalHost@default>
References: <35DE5F09 DOT 714D072B AT uclink4 DOT berkeley DOT edu>
NNTP-Posting-Host: 195.171.236.218
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp


Jeff Lee <mrjlee AT uclink4 DOT berkeley DOT edu> wrote in article
<35DE5F09 DOT 714D072B AT uclink4 DOT berkeley DOT edu>...
> I tried compiling a simple "Hello world" program using cout and gcc
gave
> me undefined references to both "cout" and "ostream:operator<<(char
> const *)".
> I'm pretty sure gcc is able to get iostream.h right, because I've
> successfully compiled a program that did nothing but include
iostream.h.
> Does anybody know what's wrong with this cout?

I had the same problem, and it was fixed by running gxx instead of
gcc, thanks to Nate Eldredge.
I did not, however, get any success from using -liostream, as
suggested by Christopher Roche (I've probably done something wrong -
any suggestions?).

???Now I can compile properly using gxx, how do I do this through
RHIDE???
Ian Craig

- Raw text -


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