You are not logged in.
i'm a bit new to C programming, after some consideration, i've decided to use GLib library.
can anybody tell me how to include glib (2) in a C program.
tried: #include <glib-2.0/glib.h>
but it failed.
thanks in advance.
Last edited by karmal (2010-03-22 02:24:03)
Offline
use:
#include <glib.h>
in your source file and then use pkg-config to generate the necessary cflag and lib options to pass to gcc. for example, if you had a project with a single source file called glib_test.c you could compile it using the following command:
gcc glib_test.c -o glib_test `pkg-config --cflags --libs glib-2.0`
Offline
EDIT: it works.
thank you very much.
Last edited by karmal (2010-03-18 07:33:40)
Offline