----- Original Message ----- From: "Joseph Slagel" <[email protected]>
To: "HDF Users Discussion List" <[email protected]>
Sent: Saturday, April 21, 2012 7:57 AM
Subject: Re: [Hdf-forum] Problems compiling hdf5 under MingW: undefinedreference to 'ftruncated64'


Tx for the help.  I happen to be using 32-bit MinGW and the define is
commented out in my src/H5pubconf.h. Not surprisingly ftruncate64 isn't in
my unistd.h.

Sorry - my mistake. I misread your post as implying that you were using 64-bit MinGW.

To get around the ftruncate64 problems with 32-bit MinGW I used the attached patch to src\H5FDdirect.c, src\H5FDmpiposix.c, and src\H5FDstdio.c. (It worked well enough for me.)

Building with './configure' I also had to apply some other patches to other files (to deal with problems with 'mkdir' and 'sleep') - which I can provide if necessary.

Cheers,
Rob

Attachment: pre1.diff
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