Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 350155

Summary: Indexer fails with GTK+ 3
Product: [Tools] CDT Reporter: Jussi Pakkanen <jpakkane>
Component: cdt-indexerAssignee: Project Inbox <cdt-indexer-inbox>
Status: RESOLVED INVALID QA Contact: Markus Schorn <mschorn.eclipse>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Jussi Pakkanen CLA 2011-06-23 10:54:17 EDT
Build Identifier:  I20110613-1736

Some symbols in GTK+ 3 headers are overlooked for some reason.

Reproducible: Always

Steps to Reproduce:
Start a new C project. Create a dummy.c file with the following contents:

#include <gtk/gtk.h>

void foo(gint works, gint32 fails) {
}

Go to project settings and add /usr/include/gtk-3.0 to include path.

Eclipse notices the GTK+ header, and indexes it but gives an error for the symbol gint32. It should recognise it without problems. This did work in the previous Eclipse release.
Comment 1 Jussi Pakkanen CLA 2011-06-27 04:45:19 EDT
Additional note: you also need to add /usr/include/glib-2.0 to include path.
Comment 2 Jussi Pakkanen CLA 2011-07-04 03:32:31 EDT
This is not really a bug with the indexer. It seems that glib installs the header that specifies gint32 etc types in a platform specific location. For example on this machine it is:

/usr/lib/x86_64-linux-gnu/glib-2.0/include/

Adding that dir to include path makes it work.