From: Tom Sobota <tom@so...> - 2008-02-26 17:25:21
To compile the demo file, the command should actually be something like
g95 -o gnuplot_fortran95_testbench gnuplot_fortran95_testbench.f90 -L
$(YOURLIBRARYPATH) -lgnuplotfortran -lfortranposix
> I am just getting to learn Fortran, but have quite a bit of Linux
> I'm trying to install gnuplotfortran as an unprivileged user on a SuSE
> Enterprise Server 9.
> I've already installed libpng, libgd, gnuplot, fortranposix and
> gnuplotfortran with PREFIX=/home/user/somedir/
> and set LD_LIBRARY_PATH to include /home/user/somedir/lib.
> When trying to test the testbench in
> $PREFIX/src/gnuplotfortran-0.2.2-1 the
> command is:
> g95 -B ../../lib/ -o proggy gnuplot_fortran95.f90 -lfortranposix
> which leads to:
> main.o)(.text+0x29): In function 'main':
> /home/andy/g95.build/linux/g95-0.90/runtime/main.c: undefined reference to
> I do not understand where the problem is originating from. Is it one of
> fortranposix/gnuplotfortran, or is it from
> the (I suppose) custom install of g95 or is it something else that I'm
> plain missing?
> Any help as soon as possible would be greatly appreciated.
From: Tom Sobota <tom@so...> - 2008-02-26 17:46:54
I installed Gnuplotfortran-0.2.2-1with fortranposix-0.1-1 on my FreeBSD
7 box. A little patch has to be applied to the file posixwrapper.c in
< #ifdef __FreeBSD__
< #include <sys/syslimits.h>
I tested Gnuplotfortran with g95 0.91 and gnuplot 4.2. Seems to be