al/pgplot pgprog.cc -L/usr/local/pgplot/ \
  -lcpgplot -lpgplot -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/ \
  -lf2c -lgcc -lm
</pre>

<pre class="c">g++ -o pgprog -I/usr/local/pgplot pgprog.cc -L/usr/local/pgplot/ \
  -lcpgplot -lpgplot  -lg2c -lgcc
</pre>

<h2>Shared Libraries</h2>

<p>On some systems, PGPLOT can be created as a shared library. This means it is only loaded into the program at run time, saving disk space in the executable file, and may also mean that several programs running at t