gcc not recognizing C++ keywords
Eric Evans
eje4@cornell.edu
Wed Feb 25 17:59:00 GMT 2004
Hi,
Yes, you were quite right! It is working now. Thanks so much for the tip.
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