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.

-Joe


On Fri, Apr 20, 2012 at 7:32 AM, Sisyphus <[email protected]> wrote:

>
> ----- Original Message ----- From: "Joseph Slagel"
>
>
>   CCLD   libhdf5.la
>> Creating library file: .libs/libhdf5.dll.a
>> .libs/H5FDstdio.o:H5FDstdio.c:**(.text+0x1520): undefined reference to
>> `ftruncate64'
>>
>
> Does your src/H5pubconf.h contain:
>
> /* Define to 1 if you have the `ftruncate64' function. */
> #define H5_HAVE_FTRUNCATE64 1
>
> That's what I got with my version of 64-bit MinGW - and that seems correct.
>
> My unistd.h contains:
> int ftruncate64(int, off64_t);
>
> Just check that your unistd.h does the same. (I have one of the automated
> builds of gcc-4.7.0.)
>
> I had some trouble with 32-bit MinGW in relation to 'ftruncate64', but not
> with 64-bit MinGW.
>
> Cheers,
> Rob
>
> ______________________________**_________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
> http://mail.hdfgroup.org/**mailman/listinfo/hdf-forum_**hdfgroup.org<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

Reply via email to