By default, the compiler recognizes .cpp and .cxx files as C++ files and .c files as C language source files. Examples in this documentation use the .c extension. The Intel® C++ Compilers, icpc and ecpc, compile .c files as C++ files. Also, the Intel C++ Compiler recognizes the default file name extensions listed in the table below:
Filename | Interpretation | Action |
---|---|---|
filename.a | Object library | Passed to linker |
filename.i | C or C++ source preprocessed and expanded by the C++ preprocessor | Passed to compiler |
filename.o | Compiled object module | Passed to linker |
filename.s |
Assemblable file |
|
filename.so |
Shared object file |
|
filename.S |
Assemblable file that requires preprocessing |
|