La différence entre .cc et .cpp
C++
-
mira24 Posted messages 139 Status Member -
mira24 Posted messages 139 Status Member -
Hello,
can someone tell me the difference between a .cc file and a .cpp file
because I'm having trouble compiling a .cc file on Visual C++. How can I get them to compile????
thank you for your help
can someone tell me the difference between a .cc file and a .cpp file
because I'm having trouble compiling a .cc file on Visual C++. How can I get them to compile????
thank you for your help
Configuration: Windows XP Firefox 2.0.0.13
9 answers
-
It seems to me that .cc is a C++ extension that works under g++ (the C++ compiler of gcc).
-
Well, if it works with ".cpp" files, you can write a small batch script to rename your files and give them a .cpp extension
or there are already existing utilities:
https://www.gratuiciel.com/gratuit/systeme_autres/
because it's even nicer to have source files with the .cpp extension!!! ^^ -
Hi,
There doesn’t seem to be any difference (at least for compilers like g++). As for Visual, I don't know. -
-
Eh bien, écris-toi un petit script pour renommer tes fichiers en .cpp, ce sera plus propre comme ça ;-)
-
What is a .cc file then?
To be honest, I had never seen one... Maybe a mix between C and C++, so the coder hesitated between .c and .cpp, and chose something in between ^^
And the reason he doesn't want to open it, I find that a bit strange... and I don't have Visual on hand to test. Is it the express version? -
Yep, it seems to be that indeed. In the link you provided earlier:
C++ programs should end with the extensions .C, .cc, .cpp, or .cxx
and it seems to only be for the compilers: Sun C Compiler, CC, C++ Compiler. -
-