Compiling 'C' source using glib-2.0 with #include <glib.h>
- Date: Wed, 06 Jan 2016 02:07:48 +1100
- From: Timothy Ward <gtwa001@xxxxxxxxx>
- Subject: Compiling 'C' source using glib-2.0 with #include <glib.h>
Whilst using gcc to compile some "c" source using glib-2.0 and using
#INCLUDE <glib.h> is not found but <glib-2.0/glib.h> is found.
The problem then is that the compiler cannot find the header files
included and listed inside glib.h which all have a path of
If the header files in glib.h are included directly the compiler
produces an error that states the only glib.h should be included.
So far I have checked that the cflags are correct using pkg-config for
glib-2.0 and included them directly for CCP.
But gcc still complains in cannot find the header files included on
gtk-list mailing list