Click to See Complete Forum and Search --> : Which is C, which is C++?


nanode
01-19-2001, 05:41 PM
I've been playing around, trying to learn some more C++ on my Linux box. The book I'm reading "Thinking In C++" uses ".cpp" for file extensions and other tutorials show ".C" (upper case). Using g++ with *.C files does not work, but cp the file to *.cpp compiles fine.

Also can gcc be used for C++? Someone please set me straight.

Thanks.

Gweedo
01-19-2001, 06:04 PM
Conventionally here is which is C and C++:

*.c Stands for a C source
*.C Stands for a C++ source
*.cpp Also usually related to C++ source

The gcc has the ability to compile C++ programs. The compiler is called g++, from what I know an extension of gcc compiler.