error including header file

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
dafa_1669371
Level 3
Level 3
10 replies posted 5 replies posted Welcome!

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;

0 Likes
1 Solution
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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...

000-Additional_include.JPG

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

View solution in original post

0 Likes
2 Replies
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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...

000-Additional_include.JPG

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

0 Likes
dafa_1669371
Level 3
Level 3
10 replies posted 5 replies posted Welcome!

thanks
it work with me

0 Likes