Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Unresolved inclusion
Unresolved inclusion [message #1790116] Tue, 05 June 2018 11:47 Go to next message
David Moreno is currently offline David MorenoFriend
Messages: 2
Registered: May 2018
Junior Member

I have Eclipse Oxygen installed on Ubuntu 16.04. My program compiles, and can be run but eclipse show errors, like unresolved inclusion. (Image 1)

I've started adding the includes (Image 2) but new ones appears (Image 3).

I am doing something wrong? I can't remove the errors ...

  • Attachment: Image 1.png
    (Size: 61.21KB, Downloaded 57 times)
  • Attachment: Image 2.png
    (Size: 104.78KB, Downloaded 46 times)
  • Attachment: Image 3.png
    (Size: 45.05KB, Downloaded 49 times)

[Updated on: Wed, 06 June 2018 07:23]

Report message to a moderator

Re: Unresolved inclusion [message #1790216 is a reply to message #1790116] Thu, 07 June 2018 07:06 Go to previous message
David VavraFriend
Messages: 803
Registered: October 2012
Senior Member
You likely aren't telling the Indexer all of the necessary include paths.
This is the output of pkg-config under Fedora for gtkmm-3.0

$ pkg-config --cflags gtkmm-3.0
-pthread -I/usr/include/gtkmm-3.0 -I/usr/lib64/gtkmm-3.0/include -I/usr/include/atkmm-1.6 -I/usr/include/gtk-3.0/unix-print -I/usr/include/gdkmm-3.0 -I/usr/lib64/gdkmm-3.0/include -I/usr/include/giomm-2.4 -I/usr/lib64/giomm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/lib64/pangomm-1.4/include -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/cairomm-1.0 -I/usr/lib64/cairomm-1.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include

Note that some of them are not in /usr/include
For example, glibmmconfig.h is in /usr/lib64/glibmm-2.4/include
$ find /usr/lib64  -name "glibmmconfig.h"

You probably don't need all of them.
You'll have to chase down what you need then add them to your project.
It's going to be tedious.

Also wouldn't hurt to rebuild the Index after setting the include paths.
Project --> C/C++ Index --> Rebuild

Previous Topic:adding help-content to Eclipse Help
Next Topic:Error sdk
Goto Forum:

Current Time: Mon Nov 12 22:45:58 GMT 2018

Powered by FUDForum. Page generated in 0.03300 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top