- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
i'm trying to add a header file to my project
i add it as an existing header file to the project and yet i had an error of "Build error: header01.h: No such file or directory"
what should i do
thanks;
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
If header01.h is not located in the same folder where you have main.c,
you also need to add the folder containing "header01.h" in the compiler include directories.
From menu
Project > Build Settings...
In the ARM GCC... > Compiler > General
add the folder in the "Additional Include Directories" area using the [...] button in the right of that field.
Then try rebuild the project.
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
If header01.h is not located in the same folder where you have main.c,
you also need to add the folder containing "header01.h" in the compiler include directories.
From menu
Project > Build Settings...
In the ARM GCC... > Compiler > General
add the folder in the "Additional Include Directories" area using the [...] button in the right of that field.
Then try rebuild the project.
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks
it work with me