Specify the path of multiple header files in the Keil Environment

Source: Internet
Author: User

Today, I first used the stm32 template to create a project or something. In short, there are a lot of header files. You all know those who have experienced it. If you haven't experienced it, mark this method. It will certainly be useful in the future.

Method: Open the options for target option box, select the C/C ++ tab, and find include paths. Here, define the path of the header file. The principle is that the system automatically records the relative address of the header file based on the location of the project, for example ".. "upper-level directory ,". "That is, the local directory and so on (similar to Linux commands ).

In this way, we can put all the header files in a folder. By setting the path, the project will find the desired header file, instead of writing the relative path one by one.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.