gcc not recognizing C++ keywords
Eljay Love-Jensen
eljay@adobe.com
Wed Feb 25 16:53:00 GMT 2004
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
More information about the Gcc-help
mailing list