The source code for a graphics application written in C++, if it is to
libplotter, must contain the line
The header file
plotter.h is distributed with
and should have been installed on your system where your C++
compiler will find it. It declares the
Plotter class and
its derived class, and also contains some miscellaneous definitions.
It includes the header files
<stdio.h>, so you do not need to include them separately.
To link your application with
libplotter, you would use the
appropriate `-l' option(s) on the command line when compiling it.
You would use
-lplotter -lXaw -lXmu -lXt -lXext -lX11 -lm
or, in recent releases of the X Window System,
-lplotter -lXaw -lXmu -lXt -lSM -lICE -lXext -lX11 -lm
(Alternatively, you may need to use `-lplotter -lXm -lXt -lXext -lX11 -lm', `-lplotter -lXm -lXt -lXext -lX11 -lm -lc -lgen', or `-lplotter -lXm -lXt -lXext -lX11 -lm -lc -lPW', on systems that provide Motif widgets instead of Athena widgets. In recent releases of the X Window System, you would insert `-lSM -lICE'. Recent releases of Motif require `-lXp' as well.)
On some platforms, the directories in which
libplotter or the
other libraries are stored must be specified on the command line.
For example, the options `-lXaw -lXmu -lXt -lSM -lICE -lXext
-lX11', which specify X Window System libraries, may need to be
preceded by an option like `-L/usr/X11/lib'.
On most systems
libplotter is installed as a DLL (dynamically
linked library, or `shared' library). This means that the linking with
your application will take place at run time rather than compile time.
The environment variable
LD_LIBRARY_PATH lists the directories
which will be searched for DLL's at run time. For your application to
be executable, this environment variable should include the directory in
libplotter is stored.
Go to the first, previous, next, last section, table of contents.