編譯命令linux
gcc main.c `pkg-config --cflags glib-2.0 --libs glib-2.0`unix
頭文件io
$ 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.0module
-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.0gcc