This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: File extensions for C++ source?


Do you think that we can change the .C and .cc extensions on C++ source files to .cpp or .c++?

Lucas

GCC already recognizes all these forms as being C++ source files. Changing filenames in CVS is a big pain. So why should we do this?


If we do standardize, we should *talk* about it first.

.C: confusion with .c on case-insensitive systems
.cc: possible confusion with 'cc' program.
.cpp: confusion with 'cpp' program and files intended for it
.c++: many systems dislike '+' in file names
.cxx: I know of no problems with this. If we changed en masse to anything, this and '.cc' are the only ones I'd even consider.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]