Hello
I have been trying to install the pgplot correctly but I'm having troubles with the libraries I guess....
demo programs run fine (for exemple ./demo1) but I'm not able to compile anything.
Here is the error I'm getting when I type
$ gfortran ./Fortran/src/pgplot/examples/pgdemo1.f
/tmp/cco0RO8P.o: In function `pgex15_':
pgdemo1.f.text+0xd0): undefined reference to `pgbbuf_'
pgdemo1.f.text+0xda): undefined reference to `pgsave_'
pgdemo1.f.text+0xe9): undefined reference to `pgsch_'
pgdemo1.f.text+0xf8): undefined reference to `pgsci_'
pgdemo1.f.text+0x122): undefined reference to `pgenv_'
pgdemo1.f.text+0x14c): undefined reference to `pglab_'
pgdemo1.f.text+0x16a): undefined reference to `pgscr_'
pgdemo1.f.text+0x188): undefined reference to `pgscr_'
pgdemo1.f.text+0x1a6): undefined reference to `pgscr_'
pgdemo1.f.text+0x1b5): undefined reference to `pgsci_'
pgdemo1.f.text+0x226): undefined reference to `pgmove_'
pgdemo1.f.text+0x264): undefined reference to `pgdraw_'
pgdemo1.f.text+0x299): undefined reference to `pgunsa_'
pgdemo1.f.text+0x2a3): undefined reference to `pgebuf_'
/tmp/cco0RO8P.o: In function `pgex14_':
pgdemo1.f.text+0x342): undefined reference to `pgbbuf_'
pgdemo1.f.text+0x34c): undefined reference to `pgsave_'
pgdemo1.f.text+0x376): undefined reference to `pgenv_'
pgdemo1.f.text+0x3a0): undefined reference to `pglab_'
pgdemo1.f.text+0x40c): undefined reference to `pgscr_'
pgdemo1.f.text+0x590): undefined reference to `pgsci_'
pgdemo1.f.text+0x59f): undefined reference to `pgsfs_'
pgdemo1.f.text+0x5bf): undefined reference to `pgpoly_'
pgdemo1.f.text+0x5ce): undefined reference to `pgsfs_'
pgdemo1.f.text+0x5dd): undefined reference to `pgsci_'
pgdemo1.f.text+0x5fd): undefined reference to `pgpoly_'
pgdemo1.f.text+0x6a0): undefined reference to `pgunsa_'
pgdemo1.f.text+0x6aa): undefined reference to `pgebuf_'
and so on....
all those functions above are in the folder /home/dana/Documents/Fortran/src/pgplot/src/ which is in my PATH.
here is my PATH and my LD_LIBRARY_PATH. What am I missing?
echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/dana/Documents/Fortran/src/pgplot/examples/:/home/dana/Documents/Fortran/src/pgplot/src/:/usr/lib32/:/usr/bin/ld:/home/dana/Documents/Fortran/src/pgplot/src/:/home/dana/Documents/Fortran/pgplot
$ echo $LD_LIBRARY_PATH
/home/dana/Documents/Fortran/pgplot/:/usr/lib/x86_64-linux-gnu/:/usr/lib/syslinux/com32/include/math.h:/home/dana/Documents/Fortran/src/pgplot/src/:/usr/lib32/:/usr/bin/ld
/tmp/cco0RO8P.o, /tmp/cco0RO8P.o, and so on
are nowhere in my computer...
I'll be very grateful for any help I can get.
Thank you very much!
I have been trying to install the pgplot correctly but I'm having troubles with the libraries I guess....
demo programs run fine (for exemple ./demo1) but I'm not able to compile anything.
Here is the error I'm getting when I type
$ gfortran ./Fortran/src/pgplot/examples/pgdemo1.f
/tmp/cco0RO8P.o: In function `pgex15_':
pgdemo1.f.text+0xd0): undefined reference to `pgbbuf_'
pgdemo1.f.text+0xda): undefined reference to `pgsave_'
pgdemo1.f.text+0xe9): undefined reference to `pgsch_'
pgdemo1.f.text+0xf8): undefined reference to `pgsci_'
pgdemo1.f.text+0x122): undefined reference to `pgenv_'
pgdemo1.f.text+0x14c): undefined reference to `pglab_'
pgdemo1.f.text+0x16a): undefined reference to `pgscr_'
pgdemo1.f.text+0x188): undefined reference to `pgscr_'
pgdemo1.f.text+0x1a6): undefined reference to `pgscr_'
pgdemo1.f.text+0x1b5): undefined reference to `pgsci_'
pgdemo1.f.text+0x226): undefined reference to `pgmove_'
pgdemo1.f.text+0x264): undefined reference to `pgdraw_'
pgdemo1.f.text+0x299): undefined reference to `pgunsa_'
pgdemo1.f.text+0x2a3): undefined reference to `pgebuf_'
/tmp/cco0RO8P.o: In function `pgex14_':
pgdemo1.f.text+0x342): undefined reference to `pgbbuf_'
pgdemo1.f.text+0x34c): undefined reference to `pgsave_'
pgdemo1.f.text+0x376): undefined reference to `pgenv_'
pgdemo1.f.text+0x3a0): undefined reference to `pglab_'
pgdemo1.f.text+0x40c): undefined reference to `pgscr_'
pgdemo1.f.text+0x590): undefined reference to `pgsci_'
pgdemo1.f.text+0x59f): undefined reference to `pgsfs_'
pgdemo1.f.text+0x5bf): undefined reference to `pgpoly_'
pgdemo1.f.text+0x5ce): undefined reference to `pgsfs_'
pgdemo1.f.text+0x5dd): undefined reference to `pgsci_'
pgdemo1.f.text+0x5fd): undefined reference to `pgpoly_'
pgdemo1.f.text+0x6a0): undefined reference to `pgunsa_'
pgdemo1.f.text+0x6aa): undefined reference to `pgebuf_'
and so on....
all those functions above are in the folder /home/dana/Documents/Fortran/src/pgplot/src/ which is in my PATH.
here is my PATH and my LD_LIBRARY_PATH. What am I missing?
echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/dana/Documents/Fortran/src/pgplot/examples/:/home/dana/Documents/Fortran/src/pgplot/src/:/usr/lib32/:/usr/bin/ld:/home/dana/Documents/Fortran/src/pgplot/src/:/home/dana/Documents/Fortran/pgplot
$ echo $LD_LIBRARY_PATH
/home/dana/Documents/Fortran/pgplot/:/usr/lib/x86_64-linux-gnu/:/usr/lib/syslinux/com32/include/math.h:/home/dana/Documents/Fortran/src/pgplot/src/:/usr/lib32/:/usr/bin/ld
/tmp/cco0RO8P.o, /tmp/cco0RO8P.o, and so on
are nowhere in my computer...
I'll be very grateful for any help I can get.
Thank you very much!