delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/05/13:34:11

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: setting DJGPP up...
Date: Sat, 05 Oct 1996 12:31:46 -0700
Organization: Three pounds of chaos and a pinch of salt
Lines: 61
Message-ID: <3256B7A2.30C9@cs.com>
References: <535s5f$h0c AT shore4 DOT intercom DOT net>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp211.cs.com
Mime-Version: 1.0
To: Jeremy Ford <jeremyfo AT shore DOT intercom DOT net>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Jeremy Ford wrote:
> 
> Hello,

Hi!  Looks like I get to reply to you first again.  :)  (I'm online WAY
too much...)

> When I try to compile programs I get an error message
> 
> iostream.h: No such File or Directory [ENOENT]
> 
> I figured this was because my include paths were not set in DJGPP..i
> was wondering how you set the incude paths and stuff like that in
> DJGPP..

It's most likely because you aren't telling djgpp that you are trying to
compile a C++ program so it doesn't know to look in the C++ paths for
the headers.  Check the following things:

1) Your program must have a C++ suffix ('.cc' or '.cpp') to be
recognized as C++.  You _can_ use .C (upper case) but since DOS is
case-insensitive you have to specifically tell gcc that it's a C++
program by making it upper case on the command line.  (i.e., "gcc foo.c"
is different from "gcc foo.C")

2) Try using 'gxx' instead of 'gcc' to compile your program.  If you
don't have 'gxx' then see #3 below.

3) Make sure that you downloaded the C++ packages for djgpp as well as
just the C ones.  The C++ packages are gpp272b.zip and lgp271b.zip in
the v2gnu directory of SimTel.  (NOTE:  Some files were missing from
these packages in the original v2 distribution.  Make sure your copies
of the zipfiles are dated Feb. 22 or later, and if not, get new ones.)

4) Make sure the C++ headers are in the right place.  They don't go in
the standard include directory; look for the /lang/cxx directory in your
djgpp installation.  If you have installed the C++ packages and this
directory doesn't exist, make sure you used '-d' when you unzipped the
packages.

5) If all else fails, post details of your system configuration here on
the newsgroup, as outlined in section 6.12 of the FAQ.  (command.com,
autoexec.bat, system environment (output of DOS 'set' command), the
output of 'go32-v2', and particularly the contents of your 'djgpp.env'
file)

HTH!

John

-- 
John M. Aldrich <fighteer AT cs DOT com>                      

* Anything that happens, happens.
* Anything that, in happening, causes something else to happen,
  causes something else to happen.
* Anything that, in happening, causes itself to happen again, happens
  again.
* It doesn't necessarily do it in chronological order, though.
 
                                       --- Douglas Adams

- Raw text -


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