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