This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Unresolved headers with Eclipse

I have an issue trying to set up an example project following this guide.

Despite the makefile including correct paths in the INC_PATHS variable, none of the headers included in the main.c are resolved.

What could be the issue here?

EDIT:

Here are the headers for the example project as @johnbrown suggested.

Parents
  • The CDT output parser should get the include paths (-I) and symbols/pre-processor definitions (-D) from the build output and add them to the source files automatically. Please verify if you have done the steps in the "Enable auto discovery of symbols, include paths and compiler settings" section in the guide. The settings should also correspond with the screenshots shown in the attachment -> Screenshots\CDT parser\

    image description

    When it is working you should notice that there is a 'key' symbol on every source file. Then you can right click on the file and enter properties -> C/C++ General -> Preprocessor Include paths,.. to see what has been added by CDT.

Reply
  • The CDT output parser should get the include paths (-I) and symbols/pre-processor definitions (-D) from the build output and add them to the source files automatically. Please verify if you have done the steps in the "Enable auto discovery of symbols, include paths and compiler settings" section in the guide. The settings should also correspond with the screenshots shown in the attachment -> Screenshots\CDT parser\

    image description

    When it is working you should notice that there is a 'key' symbol on every source file. Then you can right click on the file and enter properties -> C/C++ General -> Preprocessor Include paths,.. to see what has been added by CDT.

Children
Related