Mail Archives: djgpp/1997/11/06/03:47:58
Mark Junker wrote:
> > I get the message "undefined reference to cout".
>
> Try including <stream.h>.
No, then he would have gotten a compiler error, not a linker error.
The problem is that he didn't read the README.1ST file that come with
DJGPP, which states that one must link in the C++ libraries when
compiling C++ programs. The most straightforward way to do this is to
run gxx (g++ under Unix) instead of gcc, although one can link in the
libraries manually if they so desire.
--
Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
Alcyone Systems / http://www.alcyone.com/max/
San Jose, California, United States / icbm://+37.20.07/-121.53.38
\
"Since when can wounded eyes see / If we weren't who we were"
/ Joi
- Raw text -