So here\'s the world\'s simplest glib program:
#include
I try to compile it with gcc test.c and I get:
gcc test.c
As @chris said use pkg-config.
@chris
pkg-config
glibconfig.h is missing
it’s because this file is not in the /usr/include/glib-2.0, but in /usr/lib/glib-2.0. So you have to include also this /usr/lib path or copy the file to the /include/glib-2.0
/usr/include/glib-2.0
/usr/lib/glib-2.0.
/usr/lib
/include/glib-2.0