Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350155 - Indexer fails with GTK+ 3
Summary: Indexer fails with GTK+ 3
Status: RESOLVED INVALID
Alias: None
Product: CDT
Classification: Tools
Component: cdt-indexer (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-23 10:54 EDT by Jussi Pakkanen CLA
Modified: 2011-07-04 03:32 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.