[hdf-forum] predefined types in Fortran

Hannes Grimm-Strele hannes.grimm-strele at univie.ac.at
Thu Jun 25 04:54:10 EDT 2009


Hello,

I have some problems concerning serial HDF5 with Fortran. My program was
written with PHDF5 and compiles without errors or warnings with Intel
Compiler V10.1 on Linux/Gentoo 32 bit. But now I am trying to compile it
on Windows XP with Intel Visual Fortran V11 and HDF 1.8.3 (serial). When I
followed the instructions given for Windows build, I could compile my code
but always retrieved warnings like

warning LNK4217: locally defined symbol _H5F_FLAGS imported in function
"function".

First I thought it's because I use the wrong libraries (there are no
static precompiled debug libraries for MS Visual Studio 2005 and Intel
Fortran V11), but the warnings didn't disappear even though Pedro Vicente
sent my the right libraries (thanks by the way!). Now I figured out that
it's because of flags like "H5F_ACC_TRUNC_F" and "H5T_NATIVE_REAL" I am
using in my code. According to
http://www.hdfgroup.org/HDF5/doc/Tutor/crtdat.html, the subroutine
"h5init_types_f" must be called at the beginning of the program to get
access to the pre-defined datatypes. But when I tried to call this
routine, an error was returned since the routine seems not to be
available.

Do you have any idea what I have to do? Thanks a lot for any advice.

Regards,

Hannes Grimm-Strele

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.hdfgroup.org/pipermail/hdf-forum_hdfgroup.org/attachments/20090625/a9b46daf/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2057 bytes
Desc: not available
URL: <http://mail.hdfgroup.org/pipermail/hdf-forum_hdfgroup.org/attachments/20090625/a9b46daf/attachment.bin>


More information about the Hdf-forum mailing list