[Pw_forum] New user dealing with compilation error

Axel Kohlmeyer akohlmey at cmm.upenn.edu
Tue Jun 6 18:48:14 CEST 2006


dear chin,


On 6/6/06, Chin-Cheng Su <chincheng37 at hotmail.com> wrote:
> Hi all,
>

> g95 -O3 -cpp -D__LINUX -D__G95 -D__FFTW -D__USE_INTERNAL_FFTW -I../include
> -I. -I../Modules -I../PW -I../PH -I../iotk/src -I../CPV -c metadyn_pp.f90
> g95  -o metadyn_pp.x metadyn_pp.o ../flib/ptools.a ../flib/flib.a
> ../clib/clib.a ../iotk/src/libiotk.a -llapack -lblas
> metadyn_pp.o:metadyn_pp.f90:(.data+0x4): undefined reference to `pgopen_'
> make[1]: *** [metadyn_pp.x] Error 1
> make[1]: Leaving directory `/cygdrive/c/My_XCRYSDEN/espresso-3.1/pwtools'
> make: *** [tools] Error 2
>
> Does anyone has the idea to get pass this? Thanks greatly.

no i have not seen this before (i usually compile espresso on linux
and have little problems with that), but please have a look at the
file pwtools/metadyn_pp.f90.
the subroutine PGOPEN is only referenced when the define
__PGPLOT is set. looks like your preprocessor did not work
correctly, or some system tool is intrinsically defining __PGPLOT.
please try to add as the first lines in pwtools/metadyn_pp.f90:

#if defined(__PGPLOT)
#undef __PGPLOT
#endif

however this kind of behaviour makes me doubt, whether the
preprocessor of this g95 distribution works properly at all.

axel.


>
> Chin
>


-- 
=======================================================================
Axel Kohlmeyer   akohlmey at cmm.chem.upenn.edu   http://www.cmm.upenn.edu
  Center for Molecular Modeling   --   University of Pennsylvania
Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323
tel: 1-215-898-1582,  fax: 1-215-573-6233,  office-tel: 1-215-898-5425
=======================================================================
If you make something idiot-proof, the universe creates a better idiot.



More information about the users mailing list