include paths for C [message #1403235] |
Tue, 22 July 2014 14:54 |
Will Lyons Messages: 6 Registered: July 2014 |
Junior Member |
|
|
Long time Java in Eclipse user, first(-ish) time C in Eclipse user. I'm a long time C user, just not in Eclipse.
I am using the IAR Embedded Workbench v6.5 for ARM as my tool chain. I'm not concerned about getting Eclipse to compile using it, I just want to use Eclipse as an editor for now, specifically because it has pretty syntax highlighting, easier find/goto capability, and the style reformatter (shift + ctrl + F) is going to save me HOURS!
My problem is that I am getting all kinds of warnings/errors in Eclipse that appear to be a result of it not being able to find and/or parse my include files.
My main C file has the following includes:
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
All four have a yellow question mark that says "Unresolved inclusion" when I hover over it. And of course, since it isn't parsing them, all of my variable declarations that use uint8_t, etc. are showing up as red errors with "Type 'uint8_t' could not be resolved".
I know that the header files exist in
C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.5\arm\inc\c\
I have gone to Project->Properties->C/C++ General->Paths and Symbols->Includes and added the above directory to all the languages. Eclipse shows an exclamation point in a yellow triangle for each and says "The selected folder does not exist or not accessible". I know it exists, I can see it in Windows Explorer!
For good measure I added the directory path to the Library Paths tab, and to the Preprocessor Include Path->Entries tab too. Nothing seems to help. I've closed and restarted Eclipse after making these changes.
I'm on a fresh install of Luna downloaded this morning.
Help! (Please?)
-Will
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04057 seconds