Intel® C++ Compiler 16.0 User and Reference Guide
All source files found subsequent to -x type will be recognized as a particular type.
Linux and OS X: | -x type |
Windows: | None |
type |
is the type of source file. Possible values are:
|
none |
Disable recognition and revert to file extension. |
All source files found subsequent to -x type will be recognized as a particular type.
None
Suppose you want to compile the following C and C++ source files whose extensions are not recognized by the compiler:
File Name |
Language |
---|---|
file1.c99 |
C |
file2.cplusplus |
C++ |
We will also include these files whose extensions are recognized:
File Name |
Language |
---|---|
file3.c |
C |
file4.cpp |
C++ |
The command-line invocation using the -x option follows:
icpc -x c file1.c99 -x c++ file2.cplusplus -x none file3.c file4.cpp