# Compiling with the 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`
              $  gcc -o full_example `pkg-config --libs libgda` full_example.o

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 just use `libgda/libgda.h`, which will include all GDA header files.