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: cpp, CPLUS_INCLUDE_PATH, and g++: bug or feature?


On Wed, Jun 22, 2005 at 03:56:02PM -0400, Andrew Pinski wrote:
> 
> On Jun 22, 2005, at 3:47 PM, Gerald Pfeifer wrote:
> 
> >Feature, bug, or potential to improve documentation?
> 
> Feature as g++ changes the .c files to compile with C++ front-end.

The reason for this (making the g++ script compile .c files as C++) is
historical; in the early days Stroustrup used the .c extension for C++ as
well, apparently because he had ambitions of displacing C with C++, so
in the early days that's what users expected.


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