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.

http://community.linuxmint.com/tutorial/view/111

Recommended Answers

All 3 Replies

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.

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.