I'm having a problem with my compiler and it goes like this:
I've included the glib.h library like this:
Now, the compiler seems to find glib.h, and seems to identify the type GList which is defined in GLIB. So far so good. BUT, when I try to use a g_list function (e.g. g_list_append), I get an error message that it cannot find the definition of the function.
Now, the way glib.h works is that there are numerous inclusions in it referring to different g*.h files that reside under a directory called "glib" which, like glib.h, resides in directory "glib-2.0".
The point is that the compiler doesn't seem to find any of the included files g*.h under directory "glib".
The error messages that I'm getting are:
/home/knoppix/workspace/glib.h:30:26: error: glib/galloca.h: No such file or directory
/home/knoppix/workspace/glib.h:31:25: error: glib/garray.h: No such file or directory
/home/knoppix/workspace/glib.h:32:30: error: glib/gasyncqueue.h: No such file or directory
/home/knoppix/workspace/glib.h:49:24: error: glib/glist.h: No such file or directory
/home/knoppix/workspace/glib.h:50:26: error: glib/gmacros.h: No such file or directory
/home/knoppix/workspace/glib.h:51:24: error: glib/gmain.h: No such file or directory
and it goes on and on...
Does anyone know why it's doing this and how I can solve it?