[Pw_forum] New user dealing with compilation error

Paolo Giannozzi giannozz at nest.sns.it
Tue Jun 6 18:40:39 CEST 2006


On Tuesday 06 June 2006 18:24, Chin-Cheng Su wrote:

> metadyn_pp.o:metadyn_pp.f90:(.data+0x4): undefined reference to `pgopen_'
> [...]
> Does anyone has the idea to get pass this? Thanks greatly.

replace the line

   INTEGER, EXTERNAL :: PGOPEN

with

#if defined __PGPLOT
  INTEGER, EXTERNAL :: PGOPEN
#endif

in file pwtools/metadyn_pp.f90 . Some compilers don't like an "external"
declaration to a nonexistent subroutine even it is not actually used.
It is already fixed in the CVS version.

Paolo
-- 
Paolo Giannozzi             e-mail:  giannozz at nest.sns.it
Scuola Normale Superiore    Phone:   +39/050-509876, Fax:-563513 
Piazza dei Cavalieri 7      I-56126 Pisa, Italy



More information about the users mailing list