Including header files

Required header files must be linked to your project by adding their path to the user include directories.

Header files contain function declarations and macro definitions. You can request the use of header files by adding a #include preprocessing directive in your source files.

Header files are not linked to the project through the Project Explorer. To include a header file so that SEGGER Embedded Studio (SES) can find it, you must add its path to the list of directories in which SES looks for header files:

  1. In the Project Explorer, right-click your project and select Edit Options.
  2. In the Project Options window, select the Common configuration (sorted under Private Configurations).
    Select Common configuration
  3. Select Preprocessor.
  4. Double-click User Include Directories and add the path to the folder that contains the header file.
    You can specify an absolute path or a path that is relative to the project directory. Using a relative path is preferable if you might want to move or copy your project to, for example, a new SDK version in the future.
    Include directories
  5. Click OK.