www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/28/06:53:37

Date: Sun, 28 Nov 1999 13:27:11 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Matt Castro <mcastro AT dcnet2000 DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: (no subject)
In-Reply-To: <383F878F.607B8532@dcnet2000.com>
Message-ID: <Pine.SUN.3.91.991128132550.7651C-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sat, 27 Nov 1999, Matt Castro wrote:

> I typed: gcc Hello.cpp -o HELLO.exe      and this happened
> 
> c:\windows\TEMP\cccqjdta( .text+0x19) :Hello.cpp: undefined reference to
> `cout'

The file with a suggestive name README.1ST clearly tells you to use gxx 
instead of gcc to link C++ programs.

Please use "gxx Hello.cpp -o HELLO.exe", and it will work.

- Raw text -


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