Solution to the problem of GCC file format not recognized

When compiling a Linux program, if there is an error:

File format not recognized 

In general, XXX. O in makefile   If it is wrongly written as XXX. C, it can be corrected.

Read More: