## Compiling your code using the Libgda library

To compile you will need to set the C flags and to link the library, so we recommend to use the pkg-config command.

    $ gcc -c full_example.c `pkg-config --cflags libgda-4.0`
    $ gcc -o full_example `pkg-config --libs libgda-4.0` full_example.o

or more simply:

    $ gcc -o full_example `pkg-config --cflags --libs libgda-4.0` full_example.c

Doing this will add to the C compiler command line all needed header files and library directories as well as all needed libraries for linking your GDA application. To include header files, you can use `libgda/libgda.h` (more headers may be needed depending on some features, and are included in the documentation).