Oh the bane of Fortran mod files in libraries. Module files are compiler and compiler version specific, so you are better off just compiling the hdf5 library from source, using the same compiler that you plan on using. Hopefully F2008 submodules will help avoid this issue.
Scot On Jul 20, 2016, at 1:22 PM, Øyvind Sylta <[email protected]<mailto:[email protected]>> wrote: Hello, As a relative newcomer to HDF I have mastered to some degree using it on Windows with Visual Studio. So now, I am trying to port the code to Linux and therefore I downloaded a version of the library that I thought might be applicable to our Linux Centos system. When I try to compile: ifort -c -O -cpp -fpic -traceback -I../HDF5/hdf5-1.8.14-linux-centos6-x86_64-gcc447-shared/include ../forhdf/migri_hdf_1.f90 , I get lots of messages, the first ones being: ../forhdf/migri_hdf_1.f90(12): error #7013: This module file was not generated by any release of this compiler. [HDF5] use hdf5 -------^ ../forhdf/migri_hdf_1.f90(36): error #7013: This module file was not generated by any release of this compiler. [HDF5] USE HDF5 -------^ ../forhdf/migri_hdf_1.f90(47): error #7013: This module file was not generated by any release of this compiler. [HDF5] USE HDF5 -------^ ../forhdf/migri_hdf_1.f90(54): error #6683: A kind type parameter must be a compile-time constant. [HID_T] INTEGER(HID_T) :: file, dset It look to me as if there is a mismatch between the compiler I am using and the compiler used to build HDF5 library. I am using the Intel 14.0.1 Fortran compiler and icc 14.0.1 is also available. Gcc 4.4.7 is also installed and I thought that both the ifort and the HDF library would be compatible with gcc 4.4.7? Could you assist me with what I am doing wrong here? Øyvind _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected]<mailto:[email protected]> http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org Twitter: https://twitter.com/hdf5
_______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org Twitter: https://twitter.com/hdf5
