From: "Craig" 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 Precedence: bulk Jeff Lee 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