Adding Include paths to a project

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Adding Include paths to a project

6,627 次查看
lpcware-support
Senior Contributor I

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.pngcompiler-include_0.png

See also…

0 回复数