Linking your program with the PLplot library on a Unix type system can be done using something similar to (this is system specific):
cc -o main main.c libplplotf.a -lm -lX11 or f77 -o main main.f libplplotf.a -lm -lX11for the single precision library (-lplplotd for double). You can also link using the -l option to the linker, i.e.:
cc -o main main.c -lplplotf -lm -lX11 or f77 -o main main.f -lplplotf -lm -lX11however in this case you must be very careful to get the order of libraries on the command line right (libraries to be searched last should be placed at the end of the command line). In the latter case the library (libplplotf.a) must be in the search path used by the linker or specified by the -L option.
The utilities plrender and pltek should be in your search path. Some good places to put these include /usr/local/bin/ or /usr/local/plplot/.
The PLplot font files must be where the library can find them. The current directory is always searched for the fonts first, followed by a system-dependent (and perhaps site-dependent) search path. This can be modified from the makefile, but is structured so that it won't often need to be modified. Note that directory names must be defined with the trailing slash, if non-null. The default search order for Unix-type systems is as follows:
current directory $(HOME)/lib/ $(PLFONTS) PLFONTDEV1 (/usr/local/lib/) PLFONTDEV2 (/usr/local/lib/plplot/ PLFONTDEV3 (/usr/local/plplot/)
This is will not be a concern to the user if the fonts are located correctly during installation.