cpp, CPLUS_INCLUDE_PATH, and g++: bug or feature?

Joe Buck Joe.Buck@synopsys.COM
Wed Jun 22 21:33:00 GMT 2005


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.



More information about the Gcc mailing list