| delorie.com/archives/browse.cgi | search |
| Date: | Mon, 10 Jul 2000 09:42:13 +0300 (IDT) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| X-Sender: | eliz AT is |
| To: | PCFreak <pcfreak AT yahoo DOT com> |
| cc: | djgpp AT delorie DOT com |
| Subject: | Re: I am a newbie having trouble with simple statements |
| In-Reply-To: | <396945E8.4DDBD0A1@yahoo.com> |
| Message-ID: | <Pine.SUN.3.91.1000710094119.5255I-100000@is> |
| MIME-Version: | 1.0 |
| Reply-To: | djgpp AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
On Sun, 9 Jul 2000, PCFreak wrote: > and all I get when I compile it is a bunch of errors: > > c:/djgpp/tmp\ccDk1S45.o(.text+0x1f):test01.cpp: undefined reference to > `cout' > c:/djgpp/tmp\ccDk1S45.o(.text+0x24):test01.cpp: undefined reference to > `ostream: > :operator<<(char const *)' > collect2: ld returned 1 exit status It's in the FAQ: either use `gxx' instead of `gcc' to compile C++ programs, or append "-lstdcxx" to the link command line.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |