delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/10/03:34:18

Date: Thu, 10 Sep 1998 10:32:44 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Jean-Francois Tremblay <trembjf AT hotmail DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Newbie Question regarding include
In-Reply-To: <9bGJ1.1664$sr.2366345@weber.videotron.net>
Message-ID: <Pine.SUN.3.91.980910103216.8350H-100000@is>
MIME-Version: 1.0

On Wed, 9 Sep 1998, Jean-Francois Tremblay wrote:

> Hence, on windows (and Dos) you absolutly need to use more than ".C" to tag
> the file as being C++

Please try to avoid posting untested assertions like this: this issue
is complex and confusing enough as it is.

The truth is that a file like FOO.C or foo.C *is* treated by GCC as a
C++ program when you type the .C extension in upper case on the
command line.  The fact that DOS and Windows won't allow you to create
both toto.c and TOTO.C in the same directory is irrelevant, since the
command-line arguments are passed to a program exactly as you typed
them.

The DJGPP FAQ list explains this at some length in section 8.4.

- Raw text -


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