Pkg-config plugin is missing a letter in an include path for gtk+-3.0
94 views
Skip to first unread message
Sofia Alvarenga
unread,
Feb 27, 2017, 11:43:47 AM2/27/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pkg-config-support-for-eclipse-cdt
Hi,
I'm trying to compile a simple Hello World C program with gtk+-3.0 using Eclipse and and the Pkg-config plugin in a Linux Mint Distribution.
I have installed: - Eclipse IDE for C/C++ Developers, Neon 2 Release 4.6.2. Includes Eclipse CDT 9.2 - The plugin: Pkg-config support for Eclipse CDT 1.0.0 to easily add the libraries dependencies in Eclipse.
After creating a new project from the Hello World GTK+ template. I go to Project Properties, go to the pkg-config tab in C/C++ Build Settings and select the package gtk+-3.0.
The problem I have is that one of the includes it generates for the GCC C Compiler, the "/usr/lib/x86_64-linux-gnu/glib-2.0/includ" is missing the letter "e" at the end; therefore, I get a fatal compilation error: cannot find glibconfig.h
The temporary solution is to add the missing letter "e" to the include path in the Build Settings and it works.
I have also checked that the pkg-config works when compiling in the command line. And it also prompts the last include path correctly: