[Pw_forum] Re: [Pw_forum] Re: [Pw forum] problem with compilation

sprokuda at dnk.ru sprokuda at dnk.ru
Tue Sep 2 13:25:56 CEST 2003


Dear Bachir !
Now it is smiple (at least I hope so)
I guess you have in you make.sys file :
      -D"FFTWND_F77_ONE=fftwnd_f77_one" \
           -D"FFTW3D_F77_CREATE_PLAN=fftw3d_f77_create_plan" \
           -D"FFTW_F77=fftw_f77" \
           -D"FFTW_F77_CREATE_PLAN=fftw_f77_create_plan"

BUT you should have

      -D"FFTWND_F77_ONE=fftwnd_f77_one_" \
           -D"FFTW3D_F77_CREATE_PLAN=fftw3d_f77_create_plan_" \
           -D"FFTW_F77=fftw_f77_" \
           -D"FFTW_F77_CREATE_PLAN=fftw_f77_create_plan_"

what means you have to add one undercore in the end of deinition.

Then:
> (replace /usr/local/lib/ with  the name of the directory where
you
> installed the libfftw.a library)
Why may I replace this??

if you have there libfftw.a, probably you don't need new fftw.
Try to replace it (saved it in some other directory beforehand for
backup).

One remark: also you compliler might not see this lib, this way you
have to say compiler where to look for it by adding in makefiles
in directories to PW, PH , PP ...so on in manner like ( for PW )
it was:
MODULES = ../Modules/*.o

it should be:

MODULES = ../Modules/*.o \
/usr/local/lib/*.a

Best regards, Sergey.

best regards
Bachir





More information about the users mailing list