2.5.2 The Search Path for #include Files
The #include preprocessor directive tells the compiler to read source statements from another file. When specifying the file, you can enclose the filename in double quotes or in angle brackets. The filename can be a complete pathname, partial path information, or a filename with no path information.
- If you enclose the filename in double quotes (" "), the compiler searches for the file in the following directories in this order:
- The directory of the file that contains the #include directive and in the directories of any files that contain that file.
- Directories named with the --include_path option.
- Directories set with the MSP430_C_DIR environment variable.
- If you enclose the filename in angle brackets (< >), the compiler searches for the file in the following directories in this order:
- Directories named with the --include_path option.
- Directories set with the MSP430_C_DIR environment variable.
See Section 2.5.2.1 for information on using the --include_path option. See Section 2.4.2 for more information on input file directories.