2012年9月1日 星期六

GLib Compile Parameter

- If you don't want to use DEPRECATE widget, can add define G_DISABLE_DEPRECATED
 (ex. -DG_DISABLE_DEPRECATED=1)

 - If you can't accept one include file, can add define G_DISABLE_SINGLE_INCLUDES
 (ex. -DG_DISABLE_SINGLE_INCLUDES)

 - Header File List
    - glib.h
    - glib-object.h
    - gio.h
    - gmodule.h
    - glib/gi18n-lib.h or glib/gi18n.h
    - glib/gprintf.h
    - glib/gstdio.h

 - pkg-config --cflags glib-2.0 means:
   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include

 - pkg-config --libs glib-2.0 measn:
    -L/usr/lib -lm -lglib-2.0

 - GLib Compile parameter
    pkg-config --cflags --libs glib-2.0

 - GThread compile parameter
    pkg-config --cflags --libs gthread-2.0

 - GObject compile parameter
    pkg-config --cflags --libs gobject-2.0

 - Gmodules compile parameter
    pkg-config --cflags --libs gmodule-no-export-2.0
    OR
    pkg-config --cflags --libs gmodule-2.0
    Difference:gmodule-2.0 has "--export-dynamic" (link flag)

沒有留言: