g++ problems

Luke Davis ldavis at shellworld.net
Thu Apr 1 16:39:03 EST 2004


On Thu, 1 Apr 2004, Chuck Hallenbeck wrote:

> The GCC man page describes the various input file suffixes and
> their meanings.

You would be talking about this part of the man page?

Suffixes  of  source  file names indicate the language and kind of pro-
       cessing to be done:

.c    C source; preprocess, compile, assemble
.C    C++ source; preprocess, compile, assemble
.cc   C++ source; preprocess, compile, assemble

If so, I'm not sure how that supports the statement, that "gcc requires
that C plus plus files should be named with a ".cpp" extension".

Please elaborate.

Luke




More information about the Speakup mailing list