Mail Archives: djgpp/1997/08/02/16:02:42
From: | Erik Max Francis <max AT alcyone DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: streams question
|
Date: | Wed, 30 Jul 1997 08:44:58 -0700
|
Organization: | Alcyone Systems
|
Lines: | 21
|
Message-ID: | <33DF617A.3A19D962@alcyone.com>
|
References: | <01bc9cbd$b396fca0$783eac89 AT rnd049 DOT rnd>
|
NNTP-Posting-Host: | newton.alcyone.com
|
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
Number one C++ frequently-asked question.
The answer is that you're not linking in the C++ libraries; run with gxx
(g++ under Unix) instead of gcc and it will work fine.
Next time, read the FAQ. That's what it's there for.
--
Erik Max Francis, &tSftDotIotE / email / mailto:max AT alcyone DOT com
Alcyone Systems / web / http://www.alcyone.com/max/
San Jose, California, United States / icbm / 37 20 07 N 121 53 38 W
\
"Love is not love which alters / when it alternation finds."
/ William Shakespeare, _Sonnets_, 116
- Raw text -