delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/17/20:00:31

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Originating-IP: [202.7.175.28]
From: "Gareth Pearce" <tilps AT hotmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [ECOS] why cygwin does not support "iostream.h"?
Date: Sun, 18 Aug 2002 00:00:11 +0000
Mime-Version: 1.0
Message-ID: <F56VBOexZPTipObnY3900005730@hotmail.com>
X-OriginalArrivalTime: 18 Aug 2002 00:00:12.0303 (UTC) FILETIME=[395289F0:01C2464A]

> > >
> > > I believe this is in the gcc FAQ.  However, it's been asked often 
>enough
> > > on this list, so here's an answer for the archives:
> > >
> > > gcc uses the file extension to determine the language.  Any extension 
>it
> > > doesn't recognize is assumed to be a C file.  The default extension 
>for a
> > > C++ file is ".C".  gcc does not recognize ".cxx", which is used by
> > > Microsoft compilers, I think.  It is, of course, possible to tell gcc 
>to
> > > treat a ".cxx" file as a C++ file.  In case you don't want to mess 
>with
> > > the gcc configuration, use either the "-x c++" option of gcc, or 
>simply
> > > call g++.
> > >         Igor
> >
> > Hmm, I suppose I better correct myself before someone else does...
> > The default extensions (suffixes) for C++ are ".C", ".cc", ".cpp", and
> > ".cxx".  Any suffix that is not recognized (e.g., ".o" and ".a") is 
>passed
> > directly to the linker.
>
>What's wrong with me today? :-(
>Please strike the ".cpp" suffix.  The above should read:
>The default suffixes for C++ are ".C", ".cc", and ".cxx".
your 'mistake' was understandable, since ".C", ".cc", ".cxx", ".cp", ".cpp" 
and".c++". are all considered c++ in gcc 3.0 and up. (although the person in 
this question is obviously using <3.0 since they got it to compile :P)

Gareth


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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