When including header files into your project, the compiler must be told which directories must be searched to find those files. To do this:
- Open the Project properties. There are a number of ways of doing this. For example, make sure the Project is highlighted in the Project Explorer view then open the menu "Project -> Properties".
- In the left-hand list of the Properties window, open "C/C++ Build" and select "Settings" and then the "Tool Settings" tab.
- In the right-hand pane, choose the "Includes" section under the "MCU C Compiler" or "MCU C++ Compiler" group, and click on the "Add" icon.
- Now add each of the directories that you want the compiler to search to find your include files
![148161_148161.png 148161_148161.png](/t5/image/serverpage/image-id/121245i0F56B46A1C99DE91/image-size/large?v=v2&px=999)
![compiler-include_0.png compiler-include_0.png](/t5/image/serverpage/image-id/54847i05FEC76BF487C827/image-size/large?v=v2&px=999)
See also…