Difference between revisions of "Using PLplot"

From PLplotWiki
Jump to: navigation, search
(initial commit)
(No difference)

Revision as of 22:36, 10 April 2008

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++