Compiling with libplanfahr
3
LIBPLANFAHR Library
Compiling with libplanfahrNotes on compiling
Using pkg-config
Like other GNOME libraries, libplanfahr uses
pkg-config to provide compiler options. The
package name is "libplanfahr-0.0". So in your
configure script, you might specify something like:
PKG_CHECK_MODULES(LIBPLANFAHR, [libplanfahr-0.0])
AC_SUBST(LIBPLANFAHR_CFLAGS)
AC_SUBST(LIBPLANFAHR_LIBS)
The "0.0" in the package name is the "API version"
(indicating "the version of the libplanfahr API
that first appeared in version 0.0") and is essentially just part of
the package name.
Headers
Code using libplanfahr should do:
#include <libplanfahr/planfahr.h>
Including individual headers rather than planfahr.h is not
recommended.