On 3/18/2021 10:21 AM, Liu Hao wrote:
在 2021-03-18 04:11, Ken Goldman 写道:
Windows 10, When moving to mingw 9.2.0 from a very old version, these errors 
appeared.

 From looking at the header files, I can fix them with this in the makefile.  
Is there a better solution?

-D_NO_OLDNAMES -D_WIN32_WINNT=0x0603

c:\program files\mingw\include\sys\timeb.h:137:6: error: nested function 
'_ftime32' declared 'extern'
   137 | void _ftime32 (struct __timeb32 *__t) {_ftime ((struct _timeb 
*)(__t));}
       |      ^~~~~~~~


Isn't this MinGW.org stuff? Please tell us the values of

     #define __MINGW64_VERSION_MAJOR 9
     #define __MINGW64_VERSION_MINOR 0
     #define __MINGW64_VERSION_BUGFIX 0

in <_mingw_mac.h> on your machine (the above are definitions for mingw-w64 
v9.0.0). I can't give any constructive suggestions otherwise.

This is Windows 10.  I have _mingw.h, which contains this:

 * $Id: _mingw.h.in,v ffb333107b88 2020/03/05 13:49:29 keith $

#define __MINGW32_VERSION           5004001L
#define __MINGW32_MAJOR_VERSION           5
#define __MINGW32_MINOR_VERSION           4
#define __MINGW32_PATCHLEVEL              1

and

gcc --version
gcc (MinGW.org GCC Build-2) 9.2.0



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to