This is the mail archive of the gcc-help@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: gcc not recognizing C++ keywords


Hi Eric,

Is the compile doing: "g++ -o foo foo.cpp" ?

Or is the compile doing: "gcc -o foo foo.c" ?

Note, with GCC, C++ programs should use "g++" and have the extension .cpp .cc .cxx .c++ .cp or .C (capital C, on case-sensitive file systems only).

The extension can be ignored if "-x c++" is being used, since that overrides the extension check.

HTH,
--Eljay


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