I want to compile plrho utility. So, at first, according to the following
link, I have installed the pgplot library in ubuntu using gfortran compiler.

http://pendientedemigracion.ucm.es/info/Astrof/software/howto/howto-pgplot.html

1. Download the distribution file pgplot5.2.tar.gz
<ftp://ftp.astro.caltech.edu/pub/pgplot/pgplot5.2.tar.gz>
2. ....
.
.
.

 After that, when I want to compile the plrho with

gfortran plrho.f -lX11 -lpgplot -o plrho

I have faced to the following error:



icolor.f:179.72:
    Included at plrho.f:223:

      IF(J.GT.97.OR.J.LT.1)PAUSE
                                                                        1
Warning: Deleted feature: PAUSE statement at (1)
pltr3d.f:169.45:
    Included at plrho.f:227:

              pixmap(ix,iy) = icolor( b, nc, c )
                                             1
Warning: Rank mismatch in argument 'color' at (1) (scalar and rank-1)
plrho.f:206.24:

     .              nt, colmin, colavg, colmax )
                        1
Warning: Rank mismatch in argument 'colmin' at (1) (rank-1 and scalar)
/usr/bin/ld: cannot find -lpgplot
collect2: error: ld returned 1 exit status



How can I solve the problem?
Best regards.
Nadia Salami

Responder a