delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/03/05:39:15

Date: Thu, 3 Oct 1996 11:11:20 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Dragon Slayer <dragon DOT s AT ix DOT netcom DOT com>
Cc: djgpp AT delorie DOT com
Subject: Re: cout
In-Reply-To: <3250D3BB.5856@ix.netcom.com>
Message-Id: <Pine.SUN.3.91.961003111021.27330T-100000@is>
Mime-Version: 1.0

On Tue, 1 Oct 1996, Dragon Slayer wrote:

> when I compile this using:
> 
> gcc a.C or gcc a.cpp (have also tried gcc -o out a.C etc..)
> 
> it gives me this error message:
> 
> undefined reference to 'cout'
> undefined reference to 'ostream::operator<<(char const *)'

Use `gxx' instead of `gcc', it knows about C++-specific libraries:

	gxx a.C

- Raw text -


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