Re: gcc not recognizing C++ keywords

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux