cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/12/16:37:40

Sender: nate AT cartsys DOT com
Message-ID: <35FAD5C8.EF0CB6ED@cartsys.com>
Date: Sat, 12 Sep 1998 13:12:56 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
MIME-Version: 1.0
To: Darian Linehan <dazz AT cableinet DOT co DOT uk>
CC: djgpp AT delorie DOT com
Subject: Re: Error
References: <35f8eaaa DOT 4068244 AT news DOT cableinet DOT net>

Darian Linehan wrote:
> 
> Hi, I have just downloaded and installed DGJPP. Every time I try and
> compile a program (the basic "Hello World!" prog)
> I get the following error:
> 
> c:/utils/dgjpp/tmp\cccqedcf(.text+0x19):hello.cpp: undefined reference
> to `cout'
> c:/utils/dgjpp/tmp\cccqedcf(.text+0x1e):hello.cpp: undefined reference
> to `ostream::operator<<(char const *)'

When linking C++, you should use `gpp' instead of `gcc'.  README.1ST
discusses this.
-- 

Nate Eldredge
nate AT cartsys DOT com


- Raw text -


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