le of the command required to compile a PGPLOT program using gcc on a Sun/Solaris system (assuming that the PGPLOT code was compiled using g77):</p>

<pre class="c">gcc -o pgprog -I/usr/local/pgplot pgprog.c -L/usr/local/pgplot/ \
  -lcpgplot -lpgplot -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/ \
  -lf2c -lgcc -lm
</pre>

The locations of the libraries vary according to the operating system and compiler versions.</li>

<li><b>VMS</b> 

<pre class="c">$ CC PGPROG /INCLUDE=PGPLOT_DIR:
$ LINK PGPROG, 