Hello,

I am just getting to learn Fortran, but have quite a bit of Linux experience.

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

which leads to:

/usr/local/g95-install/bin/../lib/gcc-lib/i686-pc-linux-gnu/4.0.3//libf95.a(main.o)(.text+0x29): In function 'main':
/home/andy/g95.build/linux/g95-0.90/runtime/main.c: undefined reference to 'MAIN_'

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 just plain missing?

Any help as soon as possible would be greatly appreciated.