delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/23/12:00:06

Date: Mon, 23 Jun 1997 11:59:02 -0400 (EDT)
From: "Art S. Kagel" <kagel AT ns1 DOT bloomberg DOT com>
To: John Syers <john DOT syers AT compaq DOT com>
Cc: djgpp AT delorie DOT com
Subject: Re: trouble compiling c++
In-Reply-To: <01bc7c34$774cd980$453f19ac@elihu.sys.hou.compaq.com>
Message-Id: <Pine.D-G.3.91.970623115621.25588C-100000@dg1>
Mime-Version: 1.0

On Wed, 18 Jun 1997, John Syers wrote:

> I just downloaded djgpp, with hopes of using it on my old 386/16.
> 
> anyway, on my pentium i've had a lot of problems.  I tried compiling the
> 'hello' program in c & c++.  no luck at first; the error message said that
> it didn't recognize the directive (#include).  When I moved the #include

You do not show the comand line that you used.  I suspect that you named 
your 'hello' program hello.c even though it contains C++ code and the 'C' 
parser does not know what to do with it.  You probably should have called 
the file hello.cc.  Also use gxx, not gcc, to link C++ modules as it 
includes the C++ libraries implicitely.

If this is not the case post the exact command line(s) that you have invoked.

Art S. Kagel, kagel AT bloomberg DOT com

- Raw text -


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