Created attachment 4156 [details] Incorrect include paths listed in project explorer view, incorrect header files resolved in editor view. To reproduce: 1. Create Yocto Project SDK Autotools ANSI C or C++ project 2. Build the project and expand "Includes" to inspect include paths Observations: 1. All include paths begins with /usr, e.g. /usr/lib/gcc/x86_64-redhat-linux/6.3.1/include 2. Double-clicking include headers like <iostream> or <stdio.h> would resolve to host locations, e.g. /usr/include/c++/6.3.1/iostream
Apparently eclipse-poky still uses the following to discover include paths: gcc -E -P -v -dD "/home/parallels/eclipse-workspace/eclipse-committers-oxygen-R-linux-gtk-x86_64/runtime-New_configuration/.metadata/.plugins/org.eclipse.cdt.managedbuilder.core/spec.c" The gcc command appears to be missing the target prefix.
The command used by CDT to dump compiler spec is user configuration in project properties -> C/C++ General -> Preprocessor Include Paths, Macros etc. -> Providers -> CDT GCC Built-in Compiler Settings: ${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}" We might need a way to programmatically set this, presumably when YoctoSDKAutotoolsProjectNature is set to the project.
eclipse has been dropped.
closing