Compilation and Linking
Prev | Chapter 1. libxml++ | Next

## Compilation and Linking

To use libxml++ in your application, you must tell the compiler where to find the include headers and where to find the libxml++ library. libxml++ provides a pkg-config .pc file to make this easy. For instance, the following command will provide the necessary compiler options: pkg-config libxml++-5.0 --cflags --libs

When using autoconf and automake, this is even easier with the PKG_CHECK_MODULES macro in your configure.ac file. For instance:

        PKG_CHECK_MODULES(SOMEAPP, libxml++-5.0 >= 5.0.0)
        AC_SUBST(SOMEAPP_CFLAGS)
        AC_SUBST(SOMEAPP_LIBS)

Prev | Up | Next
UTF-8 and xmlpp::ustring | Home | Chapter 2. Parsers