I am getting this error while compiling HDF 5 1.8.5 using pgcc and pgf90
compilers in the PGI Cygwin environment shipped with PGI C/C++/Fortran
Workstation:
···
--------------------------------------------
PGC-S-0082-Function returning array not allowed (.\H5f90proto.h: 48)
PGC-S-0069-Dummy parameter specification not allowed here (.\H5f90proto.h:
48)
--------------------------------------------
It compiles well with gcc and g95 compilers. Is it an issue with the PGI
compiler ?? Kindly let me know if you have any suggestion.
It looks like some datatypes used by the C stubs routines are not defined. There are several steps one has to take before creating the HDF5 Fortran library.
If you go to the fortran/src directory and look at the comments in Makefile.am, you will get the idea
Here what you should probably do:
Compile and run H5test_kind.f90 to produce H5fortran_detect.f90
Compile and run H5fortran_detect.f90 to produce H5fort_type_defines.h.
H5match_types.c includes this file and can be compiled into H5match_types. Run H5match_types to create H5f90i_gen.h (int_f and other types will be defined)
and H5fortran_types.f90.
Now you should have all files in place to proceed with the library compilation.
Elena
···
On Jul 20, 2010, at 7:11 PM, Kunal Rao wrote:
Hello
I am getting this error while compiling HDF 5 1.8.5 using pgcc and pgf90 compilers in the PGI Cygwin environment shipped with PGI C/C++/Fortran Workstation:
--------------------------------------------
PGC-S-0082-Function returning array not allowed (.\H5f90proto.h: 48)
PGC-S-0069-Dummy parameter specification not allowed here (.\H5f90proto.h: 48)
--------------------------------------------
It compiles well with gcc and g95 compilers. Is it an issue with the PGI compiler ?? Kindly let me know if you have any suggestion.