I've used the MSVC binaries with MinGW in the past without problems. DLL's are binary compatible as long as they are just C, as is the case with HDF5 (it would not work with the HDF5 C++ API). However, I'm now also compiling HDF5 with mingw, attached is the config file that I use with MinGW 32 bit. It is for HDF5 1.8.2, 1.8.7 should be at least very similar. The compilation flags I use for compiling using mingw32 are:

-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_POSIX_SOURCE -D_BSD_SOURCE \
-UH5_DEBUG_API -D_HDF5DLL_


        Werner



On Tue, 04 Oct 2011 20:06:04 +0200, Michael Jackson <[email protected]> wrote:

Correct. For MinGW you will need to compile your own version. Those are for Visual Studio only from my estimation.
___________________________________________________________
Mike Jackson                    Principal Software Engineer
BlueQuartz Software                            Dayton, Ohio
[email protected]              www.bluequartz.net



On Oct 4, 2011, at 1:58 PM, rogez wrote:

Thank you for your quick answers. I'm out of the office at that time but I
will test these things tomorow.

Just to reply to Mike, I didn't compiled HDF5 from sources. I'm on Windows
XP 32 bits and I retrieved the HDF5-1.8.7_CMake_x86_shared.zip file for
win32. Maybe it is not the right one for use with MinGW ?

Yves

--
View this message in context: http://hdf-forum.184993.n3.nabble.com/HDF5-and-MinGW-tp3393676p3394068.html
Sent from the hdf-forum mailing list archive at Nabble.com.

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org



--
___________________________________________________________________________
Dr. Werner Benger                Visualization Research
Laboratory for Creative Arts and Technology (LCAT)
Center for Computation & Technology at Louisiana State University (CCT/LSU)
211 Johnston Hall, Baton Rouge, Louisiana 70803
Tel.: +1 225 578 4809                        Fax.: +1 225 578-5362

Attachment: H5pubconf-mingw.h
Description: Binary data

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to