Mail Archives: djgpp/1998/08/28/08:16:33
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 -