using fftw2.1.5---compile wrong,or else?

we have just installed a pgi cdk 7.2 on a console, i am installing fftw2.1.5 on an duel opteron processor linux system, I configured fftw:
./configure CC=“pgcc” CFLAGS=“-O3 -fastsse -Mvect=sse -tp k8-64” F77=“pgf90” FFLAG=“-O3 -tp k8-64” --prefix=/hptc_cluster/user_libs/fftw2.1.5
make
make install
it all went well

then I used it, and got lots ans lots of error:
mpif90 -c -O3 -Msecond_underscore -I/hptc_cluster/user_libs/fftw2.1.5/include turb.f90

PGF90-S-0034-Syntax error at or near / (/hptc_cluster/user_libs/fftw2.1.5/include/sfftw.h: 1)
PGF90-S-0034-Syntax error at or near / (/hptc_cluster/user_libs/fftw2.1.5/include/sfftw.h: 2)
PGF90-S-0034-Syntax error at or near / (/hptc_cluster/user_libs/fftw2.1.5/include/sfftw.h: 3)
PGF90-S-0034-Syntax error at or near * (/hptc_cluster/user_libs/fftw2.1.5/include/sfftw.h: 4)

PGF90-S-0021-Label field of continuation line is not blank (/hptc_cluster/user_libs/fftw2.1.5/include/sfftw.h: 25)
PGF90-S-0021-Label field of continuation line is not blank (/hptc_cluster/user_libs/fftw2.1.5/include/sfftw.h: 26)
PGF90-S-0021-Label field of continuation line is not blank (/hptc_cluster/user_libs/fftw2.1.5/include/sfftw.h: 28)
PGF90-S-0021-Label field of continuation line is not blank (/hptc_cluster/user_libs/fftw2.1.5/include/sfftw.h: 29)
PGF90-F-0008-Error limit exceeded (/hptc_cluster/user_libs/fftw2.1.5/include/sfftw.h: 23)
PGF90/x86-64 Linux 7.2-2: compilation aborted
make: *** [turb.o] Error 2

who will help me out?

Hi sad,

You can try preprocessing the file by adding the flag “-Mpreprocess” or changing your file extension to use “F90” instead of “f90”, but isn’t “sfftw.h” a C header file? If so, then you can’t include it in a Fortran program.

Also, if you’ve configured FFTW correctly, i.e config.h macro “F77_FUNC_” has only one underbar, you shouldn’t need the “-Msecond_underscore” flag.

Hope this helps,
Mat

Hi mat,
It works now, what a strange mistake I have made, I remove those fftw head files from .f90 files, and remove the underscore flag, then it works.

Thanks for helping me out!

sad