Override the Default Type of a Source File

The type of a source determines what processes operate on it during a build. By default, the file extension determines the type of a source file. For example, a file with extension .c is by default a C source file, but you can use it as a C++ source.

In the Configuration section of the IDE, you can specify the type of a source file as well as the file name. Alternatively, you can edit your configuration file directly and override the default type of a source by including a type clause when you name the file in the source directive. For example, the following line from a configuration file identifies the file parker.c as an input file for a build and sets its type as C++ source.

   source type(cpp) "parker.c"



Configuration Files


Change a Build Setup
Add or Change Source Files
Build


Types of Source Files