Date: Tue, 24 Oct 2000 09:29:08 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: "Chaban, Jennifer L" cc: "'djgpp AT delorie DOT com'" Subject: Re: cout Error In-Reply-To: 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 Mon, 23 Oct 2000, Chaban, Jennifer L wrote: > Hi! I just downloaded DJGPP and I am having a problem with compiling a test > program. This is what the error says: > > c:/djgpp/tmp\ccY6QHiP.o(.text+0x1f):world.cc: undefined reference to 'cout' > c:/djgpp/tmp\ccY6QHiP.o(.text+0x24):world.cc: undefined reference to > 'ostream::operator<<(char const *)' > collect2: 1d returned 1 exit status Use gpp instead of gcc to compile this program. This is in the FAQ (section 8.8). The file README.1ST also shows that you need to compile C++ programs with gpp.