Created attachment 1084 [details] errs ENVIRONMENT: HOST: Fedora 17 64bit ADT-INSTALLER: http://autobuilder.yoctoproject.org/pub/nightly/20130220-2/adt_installer-QA/ standalone toolchain: http://autobuilder.yoctoproject.org/pub/nightly/20130220-2/toolchain/x86_64/poky-eglibc-x86_64-i586-toolchain-gmae-1.3+snapshot-20130220.sh poky commit:7d22ef28e64de06b6238d0ef9b664c0bee6efa46 eclipse-poky:d18c45e0f5367979f7402380ee123242da2b57d5 STEPS TO REPRODUCE: 1. Install ADT-installer 2. Install eclipse plugin 3. Set up the environment to use sysroot, toolchain and kernel installed by adt-installer in step 1. 4. In eclipse, create a new Hello World C GTK project and give it a name. e.g: GTK_01 5. Reconfigure the project 6. Build the project 7. Launch QEMU 8. Run the project "RUN-> RUN CONFIGURATIONS" 9. When running, open the src/GTK_01.c file and click the opened file (try to edit) EXPECTED RESULTS: 9. The file opens. ACTUAL RESULT 9. The file opens, but when clicking to edit semantic errors appear. The errors that appear are: Description Resource Path Location Type Type 'GdkEvent' could not be resolved GTK_01.c /GTK_01/src line 38 Semantic Error Type 'GtkWidget' could not be resolved GTK_01.c /GTK_01/src line 38 Semantic Error Type 'gboolean' could not be resolved GTK_01.c /GTK_01/src line 37 Semantic Error Type 'gpointer' could not be resolved GTK_01.c /GTK_01/src line 32 Semantic Error Type 'gpointer' could not be resolved GTK_01.c /GTK_01/src line 45 Semantic Error Type 'GtkWidget' could not be resolved GTK_01.c /GTK_01/src line 45 Semantic Error Symbol 'TRUE' could not be resolved GTK_01.c /GTK_01/src line 41 Semantic Error Type 'gpointer' could not be resolved GTK_01.c /GTK_01/src line 38 Semantic Error Type 'GtkWidget' could not be resolved GTK_01.c /GTK_01/src line 53 Semantic Error Type 'GtkWidget' could not be resolved GTK_01.c /GTK_01/src line 54 Semantic Error Symbol 'GTK_WINDOW_TOPLEVEL' could not be resolved GTK_01.c /GTK_01/src line 57 Semantic Error Symbol 'NULL' could not be resolved GTK_01.c /GTK_01/src line 60 Semantic Error Type 'GtkWidget' could not be resolved GTK_01.c /GTK_01/src line 32 Semantic Error Symbol 'NULL' could not be resolved GTK_01.c /GTK_01/src line 61 Semantic Error Symbol 'NULL' could not be resolved GTK_01.c /GTK_01/src line 66 Semantic Error Symbol 'gtk_widget_destroy' could not be resolved GTK_01.c /GTK_01/src line 68 Semantic Error
Ioana, Can you help take a look, from the bug description, hard for me to follow what's going on. Thanks, Jessica
The semantic errors appears due to the fact that the project was indexed by the C plugin without the headers: check the messages in the console saying: MESSAGE Indexed 'gtk0123' (1 sources, 0 headers) ... The project can be easily cleaned of errors by invoking from the right-click menu of the project the entry "Index->Rebuild" or by simply editing(modify & save) the file in order to trigger a new indexing of the files.
Has the same root cause as Bug 2641. *** This bug has been marked as a duplicate of bug 2641 ***
Verified as per above comments