Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!samsung!olivea!uunet!taumet!steve From: steve@taumet.com (Stephen Clamage) Newsgroups: comp.lang.c++ Subject: Re: File Name Extensions Message-ID: <786@taumet.com> Date: 28 Jun 91 16:31:01 GMT References: <1991Jun27.204912.8609@javelin.sim.es.com> Organization: Taumetric Corporation, San Diego Lines: 25 cberrett@tau.sim.es.com (Craig Berrett) writes: >There seems to be a variety of different file extensions used to >indicate that a file is a c++ source or header file . >At this time is there any consensus as to the >naming convention that should be used? What is currently in use for >these c++ file extensions? There is no consensus. Some compilers use the extension to determine whether a file is a C or C++ file (if the compiler can compile both languages), some do not. Some compilers accept a variety of extensions, some are restrictive. For C++ main (non-header) files, I have seen: .c .C .CC .c++ .cxx For C++ header files, I have seen: .h .hxx .h++ There may be others. Since you usually have to specify the file extension as part of the #include directive, the header file extension is a different category of concern from the main C++ file extension. -- Steve Clamage, TauMetric Corp, steve@taumet.com