理解C++各种后缀文件名.c, .cc, .cpp, .h, .o, .lib ...

  • .cc|.cpp|.c++|.cp|.cxx|.C|.CPP

GNU GCC recognises all of they as C++ files, and will use C++ compilation regardless of whether you invoke it through gcc or g++.

  • .c vs. .C

.C is a C++ file, but .c is a C file.

  • .cpp VS .cc

cc = C with classes

cpp = C puls plus

  • References

  1. C++ code file extension? .cc vs .cpp [closed]

你可能感兴趣的:(C,C++,Cython,c,.cc,.cpp,.o,.lib)