[Pw_forum] g95 compilation problem
Andrea Ferretti
ferretti.andrea at unimore.it
Tue Sep 27 14:36:08 CEST 2005
Hi Silviu,
as far as I understand C_POINTER is a preprocessor macro which is defined
in f_defs.h, as stems from (fft_scalar.f90, lines 72-75)
72 ! C_POINTER is defined in include/f_defs.h
73 ! for 32bit executables, C_POINTER is integer(4)
74 ! for 64bit executables, C_POINTER is integer(8)
therefore it seems there's something wrong with the gcc precompiler
producing fft_scalar.F90 ...
while C_POINTER is explicitly written in the .f90 file, it should be
expanded to the macro value ( integer(kind=4 or 8) ) in the .F90 file,
which seems not to be the case here...
Andrea
On Tue, 27 Sep 2005, Silviu Zilberman wrote:
> Hi,
>
> Did any of you experienced the following (or similar) compilation
> problem with g95:
>
> g95 -O -D__FFTW -I../include -I. -I../Modules -I../PW -I../PH
> -I../iotk/src -c fft_scalar.F90 -o fft_scalar.o
> In file fft_scalar.F90:78
>
> C_POINTER :: fw_plan( 3, ndims ) = 0
> 1
> Error: Unclassifiable statement at (1)
> In file fft_scalar.F90:79
>
> C_POINTER :: bw_plan( 3, ndims ) = 0
> 1
> Error: Unclassifiable statement at (1)
> ....
>
> I am trying to get the cvs version running on a Cygwin + g95 platform.
>
> Thanks, Silviu.
>
>
>
More information about the users
mailing list