The difference between suffix c and c
GCC can be used simultaneously to compile C processes and C programs. In general, the C compiler is determined by the suffix name of the source file or a C program. In Linux, the suffix of the C source file is called .c, and the suffix of the C source file is .c or .cpp.
However, the GCC command can only compile C source files, and the library that cannot be automatically used automatically and the library used by the C program (can be used to load the C library). Therefore, the G command is usually used to complete the compilation and connection of the C program, which automatically calls GCC implementation compilation.
So sometimes compile the .C program, and call the user C static library in the .C program, it will be changed to the suffix name. C is no problem.