NOTICE: This website will be shut down in the near future. Product content has moved to nxp.com. Forum content and FAQs have been moved to community.nxp.com. We encourage you to create a user account on nxp.com to use the new community forums and access NXP microcontroller content. We greatly appreciate your contributions and look forward to seeing you at our new web location.

 

Adding Include paths to a project

lpcxpresso-support's picture

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

See also…

0
Your rating: None
feedback