You shouldn't remove these, at least not statx.h. The problem is, I think, that statx.h provides a new definition of struct stat, with a layout different from the one in msvcrt.dll. So you must exclude the definition of struct stat in the original sys/stat.h by using #ifndef __GW32__ Enclosed is a diff of the original mingw include files and the ones patched for use with Libgw32c . This used to be part of the Libgw32c package and was documented on the Libgw32c package page, but incorrectly this has been omitted in later versions. I'm sorry for the confusion.
Kees Zeelenberg ----- Oorspronkelijk bericht ----- Van: "Keith Hargrove" <[EMAIL PROTECTED]> Aan: "GnuWin32" <[EMAIL PROTECTED]> Verzonden: vrijdag 17 september 2004 21:17 Onderwerp: Re: [GnuWin32-Users] Stat does not work with libgw32c > whith -D__GW32__ on the test program I had ro remove > > #include <winx/stdiox.h> > #include <winx/stdlibx.h> > #include <winx/stringx.h> > #include <winx/sys/statx.h> > to make it > > and it does the same thing. > > >
include-GnuWin32.diffs
Description: Binary data