Date: Mon, 10 Jul 2000 09:42:13 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: PCFreak 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.