delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/08/17/08:23:29

Date: Fri, 17 Aug 2001 14:22:38 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: Christopher all <Chrisall AT hotmsil DOT com>
Message-Id: <3028-Fri17Aug2001142238+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9
CC: djgpp AT delorie DOT com
In-reply-to: <3B7CEDE9.17D0DCC9@hotmsil.com> (message from Christopher all on
Fri, 17 Aug 2001 10:17:38 GMT)
Subject: Re: Problem compiling c++
References: <3B7CEDE9 DOT 17D0DCC9 AT hotmsil DOT com>
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

> From: Christopher all <Chrisall AT hotmsil DOT com>
> Newsgroups: comp.os.msdos.djgpp
> Date: Fri, 17 Aug 2001 10:17:38 GMT
> 
> I tried " gcc a.cpp "
> 
> C:\WINDOWS\Desktop>gcc  a.cpp
> c:/djgpp/tmp\ccSSI7E3.o(.text+0x27):a.cpp: undefined reference to `cout'

Use gpp instead of gcc.

> C:\WINDOWS\Desktop>gcc  a.cpp -lstdcpp
> c:/djgpp/bin/ld.exe: cannot open -lstdcpp: No such file or directory
> (ENOENT)

That should have been "gcc a.cpp -lstdcxx".

You _are_ aware that all this is already covered in the DJGPP FAQ
list, yes?

- Raw text -


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