Whats the difference between using CC and CPP as the file extension for C++ programs? I thought C++ use the CPP extension for source files. I was reading this article and saw he used CC.


Its compiler dependent -- compilers are free to use any extension they please. Microsoft uses *.cpp, while g++ and MinGW use *.cc, although both compilers can be set up to recognize other extensions.

Oops, how did I end up posting here? This is the wrong thread!
Sorry about that!

I believe G++ recognizes .cc, .c++, .cpp files.