www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/24/03:32:42

Date: Tue, 24 Oct 2000 09:29:08 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "Chaban, Jennifer L" <jennifer DOT l DOT chaban AT lmco DOT com>
cc: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>
Subject: Re: cout Error
In-Reply-To: <D14BEF7AFC99D3118F6500508B12122103034C02@emss01m02.ems.lmco.com>
Message-ID: <Pine.SUN.3.91.1001024092715.24828E-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 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019