If you feed a .c file to a C++ compiler, it will compile as cpp; .cc and .cxx is just an alternative to .cpp used by some compilers. .hpp is an attempt to distinguish header files where there are significant C and C++ differences.
.c vs .cc vs. .cpp vs .hpp vs .h vs .cxx - Stack Overflow
Other file extensions used include .cxx and .C (capital C). I believe Bjarne Stroustrup used .C originally. .cpp is the name of the C preprocessor so it's unfortunate that it was used for C++ as well.
Conventions. Historically, the suffix for a C++ source file was .C. This caused a few problems the first time C++ was ported to a system where case wasn't significant in the filename. Different users adopted different solutions: .cc, .cpp, .cxx and possibly others. Today, outside of the Unix world, it's mostly .cpp. Unix seems to use .cc more often. For headers, the situation is even more ...
Для C++ есть расширения файлов .C (большая буква),.с++, .cpp, .cxx. В некоторых файловых системах + не мог быть частью имени файлов, а ткже не было разницы между большой и маленькой буквами (DOS, Windows). Там исторически сложилось ...
в чем разница между .cpp и .cxx? - Stack Overflow на ...
C++ code file extension? What is the difference between .cc and .cpp
What should I do to set the CXX compiler correctly? Should I modify the CMakeList.txt file? Should I change some configuration within VS Code? Note that the final build is done inside a Docker container, and the default compiler version inside the container is Version 14.