Next: Querying and Setting Fundamental
Up: Using t1lib
Previous: Using t1lib
Contents
Index
Compiling and Linking t1lib-Programs
A program that wants to use functions from the library must include
the appropriate headers at compile time and then be linked with the
appropriate libraries. Since V. 0.6-beta the X11 interface is separated
from the t1lib pivotal stuff. This yields advantages for programs that
don't use the X11 rastering functions on systems where X11 is
installed.
The following applies to programs that do not use the X11 rastering
functions:
- Include the file
t1lib.h
. All definitions and declarations
needed at compile time are included in this file.
libt1.a
or libt1.so
respectively must be linked to the
program.
In contrast, a program that uses the X11 interface must adhere to the
following scheme:
t1lib.h
and t1libx.h
must be included in this
order. Furthermore, t1libx.h
includes X11/Xlib.h
if
it is not already included.
- The libraries
libt1.a
/libt1.so
and
libt1x.a
/libt1x.so
must be linked to the executable.
The correct order is -lt1x -lt1
since the X interface uses
functions from the latter. Also, the X11 library must appear in the
library list after -lt1x
.
The Makefiles for xglyph
and type1afm
are typical
examples for both configurations.
Next: Querying and Setting Fundamental
Up: Using t1lib
Previous: Using t1lib
Contents
Index
2005-01-12