Using libgimpprint

The Developer's Guide to Gimp-Print
Prev |  | Next

# Chapter 2. Using libgimpprint

This chapter describes how to write programs that use libgimpprint.

# Code prerequisites

To use libgimpprint with a program, several steps must be taken:

- Include the master libgimpprint header:

      <gimp-print/gimp-print.h>

- Call `stp_init`.

- Link with the libgimpprint library.

The following is a short example program. It does not do anything useful, but it does everything required to link with libgimpprint and call other functions from libgimpprint.

    #include <gimp-print/gimp-print.h>
    int
    main (int argc, char *argv[])
    {
      stp_init();
      return 0;
    }

Prev | Home | Next
Copying, modification and redistribution |  | Linking with libgimpprint