I am struggling including a file in one project. I don't know why eclipse is not able to find the header file. The file is named boards.h, inside a folder named bsp, and everything seems fine
Asked
Active
Viewed 1,015 times
2 Answers
0
Your include path starts with a / which is the root of your filesystem and I'm pretty sure your ipv6_coap__client folder isn't in the root of your filesystem. I think simply specifying only the subfolder bsp
should do as the compiler tends to work relative to your projects location. If that fails try ${workspace_loc}/ipv6_coap_client/bsp

Eelke
- 20,897
- 4
- 50
- 76
-
no, but the check "Is a workspace path" is ON – Nuñito Calzada May 02 '15 at 06:38
-
anyway, I've tried now with the full path with the same result – Nuñito Calzada May 02 '15 at 06:40
-
If you scroll to the right in your build output can you verify the correct path is passed to the compiler on the commandline? (should start with -I) – Eelke May 02 '15 at 06:43
-
true it's not getting the path propery ( -I/ipv6_coap_client/bsp -) but i cleaned and set it 100 times :-( – Nuñito Calzada May 02 '15 at 06:46
-
1I think you are settings it in the wrong place. Your language selection there is on assembly. Should be on GNU C. Also these are the general settings it would be better to set project specific paths under C/C++ Build > Settings > C Compiler > Includes – Eelke May 02 '15 at 06:50
-
true, It was this, thanks @Eelke – Nuñito Calzada May 02 '15 at 07:04
0
set project specific paths under C/C++ Build > Settings > C Compiler > Includes Solved the problem

Nuñito Calzada
- 4,394
- 47
- 174
- 301