delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/20/19:29:36

From: alain AT qnx DOT com (Alain Magloire)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: GCC bugs
Date: 20 Jan 2000 23:52:24 GMT
Organization: QNX Software Systems
Lines: 21
Message-ID: <86873o$bta$1@gateway.qnx.com>
References: <01bf611a$9c6e9500$LocalHost AT alex> <3883BCC2 DOT 2CC1DCD9 AT a DOT crl DOT com> <01bf61c3$70f0a7c0$LocalHost AT alex> <Pine DOT SUN DOT 3 DOT 91 DOT 1000119113628 DOT 9609M-100000 AT is> <01bf627f$0b8075c0$LocalHost AT alex> <20ya9li3gm DOT fsf AT Sky DOT inp DOT nsk DOT su> <01bf6359$2df17020$LocalHost AT alex>
NNTP-Posting-Host: qnx.com
X-Trace: gateway.qnx.com 948412344 12202 209.226.137.1 (20 Jan 2000 23:52:24 GMT)
X-Complaints-To: usenet AT qnx DOT com
NNTP-Posting-Date: 20 Jan 2000 23:52:24 GMT
X-Newsreader: TIN [version 1.2 PL2]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Alexei A. Frounze (alex DOT fru AT mtu-net DOT n-o-s-p-a-m DOT ru) wrote:
: WOW!

: I've got it!

: But why output is casesensitive to input file extension???

: Please explain me this thingy.

It's a 'well-known' way to tell the compiler which language you want to use.
AFAIK, it's not Un*x specific.  I think, on Wind* you can tell the compiler
by naming the file *.cpp for example etc .. GNU compiler accepts *.cc *.cpp *.C
to try to do the right thing (tm) and calling the right compiler (C++).  But
it this case do to the very nature of the underlying OS, you are
running to trouble.  Did not the FAQ discuss about it ?
And I'm sure you read it like a good netizen, ... right ? ;-)

--
au revoir, alain
----
Aussi haut que l'on soit assis, on est toujours assis que sur son cul !!!

- Raw text -


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