Hi Kyle,

On 2012.02.11 18:58, Kyle Schwarz wrote:
-I../../include/ -D_FILE_OFFSET_BITS=64 -D_OFF_T_DEFINED -D_OFF_T_
-D_off_t=off64_t -Doff_t=off64_t
(...)
/home/kyle/software/mingw-w64/4.6.2/mingw-w64-i686/lib/gcc/i686-w64-mingw32/4.6.2/../../../../i686-w64-mingw32/include/stdio.h:448:30:
error: unknown type name '_off64_t'
/home/kyle/software/mingw-w64/4.6.2/mingw-w64-i686/lib/gcc/i686-w64-mingw32/4.6.2/../../../../i686-w64-mingw32/include/stdio.h:449:28:
error: unknown type name 'off64_t'

That's weird.
Can you tell the version of MinGW-w64 you are using and where you downloaded it from?

I did test with with MinGW-w64 and the Large File Support workaround, that is added with the defines above, and that relies on redefining off_t to off64_t as is the case on other platforms, should not prevent the off64_t to be properly defined from stdio.h

In the MinGW-w64 I use (from TDM-GCC), stdio.h defines the offeset types as follows:

#ifndef _OFF_T_DEFINED
#define _OFF_T_DEFINED
#ifndef _OFF_T_
#define _OFF_T_
  typedef long _off_t;
#if !defined(NO_OLDNAMES) || defined(_POSIX)
  typedef long off_t;
#endif
#endif
#endif

#ifndef _OFF64_T_DEFINED
#define _OFF64_T_DEFINED
  __MINGW_EXTENSION typedef long long _off64_t;
#if !defined(NO_OLDNAMES) || defined(_POSIX)
  __MINGW_EXTENSION typedef long long off64_t;
#endif
#endif

Thus, none of what we do should have an impact on off64_t and _off64_t being accessible. But apparently, that is not the case on your platform.

Can you please have a look at your stdio.h and let me know how off64_t is defined there (if defined at all)?

Regards,

/Pete

_______________________________________________
Libcdio-help mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/libcdio-help

Reply via email to