include paths for C [message #1403235] |
Tue, 22 July 2014 10:54  |
Eclipse User |
|
|
|
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
|
|
|
|
|
|
|
|
|
Re: include paths for C [message #1422260 is a reply to message #1403235] |
Fri, 12 September 2014 11:18  |
Eclipse User |
|
|
|
Will,
I'm using IAR EW ARM v7.0 with Eclipse Kepler. I remember I suffered something similar and just checked in my Project Properties I have added two lines in 'Include Directories':
C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.5\arm\inc
and
C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.5\arm\inc\c
This is because of some some includes like #include "./c/file.h"
Also note in my properties I have normal slashes but when copy-paste here they changed into backslashes (!?)
I got Eclipse Luna and wanted to link it to IAR but couldn't.... basically because the IAR folks haven't released the right plug-in and the current one (for Kepler) doesn't work. I didn't research any longer, but probably it's better to stick to what we know it works.
|
|
|
Powered by
FUDForum. Page generated in 0.05540 seconds