Please see The HDF Group's new Support Portal for the latest information.
The Embarcadero software is not supported with HDF5. However, the steps below may help enable you to build the HDF5 library with Embarcadero's C++ Builder.
-
Get the inttypes.h and stdint.h files from here:
https://code.google.com/p/msinttypes/
-
Remove the "only use with Visual Studio" #defines at the top of both files.
-
Remove the imaxdiv function from inttypes.h to resolve issues with the compiler. (There may be a better way to implement this but this should work.)
-
Include these files in your own code (with #include) probably before the #include hdf5.h.
-
Use coff2omf to convert the HDF5 import libs to OMF format (located in the C++ Builder bin directory).
-
Now you should be able to include the HDF5 header files (#include hdf5.h) in your code and use the library.
-
Note that C++ Builder does NOT use the Microsoft C run-time, so you will have to be very careful to use H5free_memory() when an HDF5 API call returns memory. This is very rare, and the HDF5 Reference Manual will tell you that you are responsible for freeing memory (see H5Tget_member_name() as an example). If you do not do this, the CRT heap will eventually have problems.
- - Last modified: 07 September 2016