From: Hazen B. <hba...@ma...> - 2008-04-09 02:22:35
|
On Apr 8, 2008, at 9:36 PM, ppi...@mt... wrote: > Hi, > > I am a plplot newbuy, have just installed it to my Kubuntu machine > from > the repository. I could not find in the documentation a single > example of > how to compile and link a program that uses plplot. My attempts to > compile > some test codes by guessing right library names and paths with the > aid of > pkg-config did not lead to any success. > > Could someone provide me with compiling and linking examples that are > known work on Linux with gcc/g++/g77/gfortran? For simple programs that only depend on PLplot, this works for me on linux: gcc test1.c -o test1 -lplplotd -Hazen |