Linking with libgimpprint

To link a program with libgimpprint, the option -lgimpprint needs to be passed to the compiler when linking. For example, to compile and link stpimage.c the following commands would be used:

$ gcc -c stpimage.c
$ gcc -o stpimage -lgimpprint stpimage.o

The compiler and linker flags needed may vary depending on the options Gimp-Print was configured with when it was built. The pkg-config script will give the correct parameters for the local installation.