www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/25/05:17:26

Date: Sun, 25 Apr 1999 12:15:18 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: jj <panzerking AT aol DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: I read section 8 of FAQ and still cannot find .h files
In-Reply-To: <T6hU2.431$aW6.314@news.rdc2.occa.home.com>
Message-ID: <Pine.SUN.3.91.990425121459.9117p-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, 24 Apr 1999, jj wrote:

> D:\DJGPP>gcc -o hello.exe hello.cpp
> d:/djgpp/tmp\cccimutb(.text+0x11):hello.cpp: undefined reference to `cout'
> d:/djgpp/tmp\cccimutb(.text+0x16):hello.cpp: undefined reference to
> `ostream::o
> erator<<(char const *)'

Both readme.1st and the FAQ (the latter does it right at its
beginning) explain that to build C++ programs you need to use gxx
instead of gcc, like this:

	gxx -o hello.exe hello.cpp

Please try that, and if it doesn't work as well, post any error
message(s) this command produces.

- Raw text -


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