Absoft User Forum

Archive => Additional Software & Libraries Archive => Topic started by: hkinds on June 20, 2021, 04:23:44 AM

Title: HDF5 and AWE
Post by: hkinds on June 20, 2021, 04:23:44 AM
I have a simple project: create simple HDF5 datafile:
PROGRAM H5_CRTDAT
  USE HDF5 ! This module contains all necessary modules
  IMPLICIT NONE
  CHARACTER(LEN=8), PARAMETER :: filename = "dsetf.h5" ! File name
  CHARACTER(LEN=4), PARAMETER :: dsetname = "dset"     ! Dataset name
  INTEGER(HID_T) :: file_id       ! File identifier
  INTEGER(HID_T) :: dset_id       ! Dataset identifier
  INTEGER(HID_T) :: dspace_id     ! Dataspace identifier
  INTEGER(HSIZE_T), DIMENSION(2) :: dims = (/4,6/) ! Dataset dimensions
  INTEGER     ::   rank = 2                        ! Dataset rank
  INTEGER     ::   error ! Error flag
  CALL h5open_f(error)
  CALL h5fcreate_f(filename, H5F_ACC_TRUNC_F, file_id, error)
  CALL h5screate_simple_f(rank, dims, dspace_id, error)
  CALL h5dcreate_f(file_id, dsetname, H5T_NATIVE_INTEGER, dspace_id, dset_id, error)
  CALL h5dclose_f(dset_id, error)
  CALL h5sclose_f(dspace_id, error)
  CALL h5fclose_f(file_id, error)
  CALL h5close_f(error)
END PROGRAM H5_CRTDAT

When I set target to terminal: no build errors
When I set target to AWE: I get the following link errors:
libhdf5.lib(H5Omtime.c.obj) : error LNK2019: unresolved external symbol timezone referenced in function H5O_mtime_decode
OLDNAMES.lib(timezone.obj) : error LNK2001: unresolved external symbol timezone
.\create.exe : fatal error LNK1120: 2 unresolved externals
Title: Re: HDF5 and AWE
Post by: forumadmin on June 21, 2021, 12:48:58 PM
This issue has been addressed with a patch for the HDF5 libraries included as part of the Windows Absoft Pro Fortran 2021 Additional Libraries package. The patch installer is available for download using this link:

http://www.absoft.com/electronicdelivery/patches/absoft_profortran_win_21_hdf5_tz_patch.exe (http://www.absoft.com/electronicdelivery/patches/absoft_profortran_win_21_hdf5_tz_patch.exe)