Date: Mon, 23 Jun 1997 11:59:02 -0400 (EDT) From: "Art S. Kagel" To: John Syers Cc: djgpp AT delorie DOT com Subject: Re: trouble compiling c++ In-Reply-To: <01bc7c34$774cd980$453f19ac@elihu.sys.hou.compaq.com> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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