delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/17/03:37:37

Date: Thu, 17 Oct 1996 09:08:25 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Matthias Maisenbacher <mamaisen AT si DOT bosch DOT de>
Cc: djgpp AT delorie DOT com
Subject: Re: include files not found by gxx
In-Reply-To: <1996Oct16.143646.25580@fr.bosch.de>
Message-Id: <Pine.SUN.3.91.961017090253.24334G-100000@is>
Mime-Version: 1.0

On Wed, 16 Oct 1996, Matthias Maisenbacher wrote:

> Problem:
> 
> C:\djgpp\test>gxx test.c
> test.c:1: iostream.h: No such file or directory (ENOENT)

You should call C++ source files with a C++ extension, such as .cc 
(recommended), .cpp, .cxx etc.  The way you do it, GCC thinks this is a C 
program, so it never searches the C++ include directories.

More details on this are available in the DJGPP FAQ list (available as 
v2/faq202b.zip from the same place you get DJGPP), in sections 8.2 and 
8.4; please read them.

- Raw text -


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