编译命令
gcc main.c `pkg-config --cflags glib-2.0 --libs glib-2.0`
头文件
$ ls /usr/local/include/glib-2.0/
gio glib glib.h glib-object.h glib-unix.h gmodule.h gobject
$ pkg-config --cflags glib-2.0 --libs glib-2.0
-I/usr/local/include/glib-2.0 -I/usr/local/lib/x86_64-linux-gnu/glib-2.0/include -L/usr/local/lib/x86_64-linux-gnu -lglib-2.0