All the HDF5 functions would be declared as "extern C", so it should not
matter if you compile them as C++ or C. Are you compiling as DLL or as
static library? There are different prefixes (windows declspec) depending
on compilier flags, you will need different settings for compiling a DLL
or a static library.
Mostly, HDF5 can be compiled as just a set of C/C++ sources, but there is
this one file that is generated dynamically using H5detect, which is
required
to be built as binary first and creates a C code itself that needs to be
part of the library.
Werner
On Wed, 05 Oct 2011 09:22:18 +0200, rogez <[email protected]>
wrote:
Thanks you very much,
I replaced the h5pubconf.h file with the one you provided and the type
redefinition issue disappeared.
I now get an "undefined reference to "H5Fcreate()"". I'm sure that my
include paths are good but as you said before, my project is set as a C++
one, so it may be the reason for this issue, I presume.
I will probably retry later to run HDF5 over Eclipse/MinGW and C++ (I
will
take time to recompile HDF5, but I cannot do that for now). I have to
produce a little sample code which I will develop under VS C++, as a
temporary solution.
(I posted two other questions in the forum which hasn't get solutions,
could
you please have a quick look at that ?)
Best regards,
Yves
--
View this message in context:
http://hdf-forum.184993.n3.nabble.com/HDF5-and-MinGW-tp3393676p3395787.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
--
___________________________________________________________________________
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
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org