----- Original Message -----
From: "Allen D Byrne" <[email protected]>
To: "Sisyphus" <[email protected]>
Cc: <[email protected]>
Sent: Wednesday, April 25, 2012 11:12 PM
Subject: Re: [Hdf-forum] Problems compiling hdf5 under MingW:
undefinedreference to 'ftruncated64'
Rob,
The defines should be in the generated H5pubconf.h file. However,
because I
could only successfully test CMake on MinGW, I did not want to insert
MinGW
checks into configure and not be able to verify them. End result is that
those
defines must be added to your H5pubconf.h.
Yep - if I manually add defines for both H5_HAVE_WIN32_API and H5_HAVE_MINGW
to H5pubconf.h, 1.8.9-pre1 then builds fine for me without the need to
patch any files.
That's no so bad .... better if there were some way to get something like
the following automatically added to the end of H5pubconf.h:
#ifndef H5_HAVE_WIN32_API
#ifdef WIN32 /* defined for all windows systems */
#define H5_HAVE_WIN32_API 1
#endif
#endif
#ifndef H5_HAVE_MINGW
#ifdef __MINGW32__ /*defined for all MinGW compilers */
#define H5_HAVE_MINGW 1
#endif
#endif
But if that can't be done easily, then I wouldn't bother about it.
Cheers,
Rob
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org