Using PLplot

From PLplotWiki
Revision as of 23:36, 10 April 2008 by Smekal (Talk | contribs) (initial commit)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The next step after you have successfully managed to configure and build the PLplot library is to build your own program using PLplot. Basically one has to tell the compiler where to find the include files and the library. This depends on the programming language you use and the platform you are working one. It's always a good idea to have a look in the Makefiles which on Linux are based in /usr/local/share/plplot/examples/language if you installed PLplot in the standard location.

Linux

C/C++

If the pkg-config is available and CMake found it during the configuration stage than programs might be compiled via

gcc `pkg-config --cflags --libs plplotd` prog.c -o prog

Windows

C/C++

Mac OS X

C/C++