libgdamm: libgdamm Reference Manual

# libgdamm Reference Manual

### 4.1.2

## description

libgdamm is a C++ wrapper for the libgda generic database access API.

## basics

Include the libgdamm header:

     #include <libgdamm.h>

(You may include individual headers, such as `libgdamm/connection.h` instead.)

If your source file is `program.cc`, you can compile it with:

     g++ program.cc -o program `pkg-config --cflags --libs libgdamm-4.0`

Alternatively, if using autoconf, use the following in `configure.ac:`

     PKG_CHECK_MODULES([LIBGDAMM], [libgdamm-4.0])

Then use the generated `LIBGDAMM_CFLAGS` and `LIBGDAMM_LIBS` variables in the project `Makefile.am` files. For example:

     program_CPPFLAGS = $(LIBGDAMM_CFLAGS)
     program_LDADD = $(LIBGDAMM_LIBS)