Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows

From: unlvsur unlvsur<mailto:[email protected]>
Sent: Thursday, November 3, 2022 16:30
To: 
[email protected]<mailto:[email protected]>
Subject: mingw-w64 headers causes inconsistent for macros under C++20 module

C:\Users\unlvs\Documents\fast_io\benchmark\0002.file_io_tsc\time>g++ -o 
iobuf_file iobuf_file.cc -Ofast -std=c++23 -s -flto -fmodules-ts 
-I../../../include
In file included from 
c:\users\unlvs\documents\x86_64-w64-mingw32\x86_64-w64-mingw32\include\c++\13.0.0\cwchar:44,
                 from 
c:\users\unlvs\documents\x86_64-w64-mingw32\x86_64-w64-mingw32\include\c++\13.0.0\bits\postypes.h:40,
                 from 
c:\users\unlvs\documents\x86_64-w64-mingw32\x86_64-w64-mingw32\include\c++\13.0.0\iosfwd:42,
                 from 
c:\users\unlvs\documents\x86_64-w64-mingw32\x86_64-w64-mingw32\include\c++\13.0.0\string_view:40,
                 from ../../../include/fast_io_driver/timer.h:2,
                 from iobuf_file.cc:3:
c:\users\unlvs\documents\x86_64-w64-mingw32\x86_64-w64-mingw32\include\wchar.h:1263:3:
 error: inconsistent imported macro definition '__mingw_ovr'
1263 |   __mingw_ovr
      |   ^~~~~~~~~~~
In file included from 
c:\users\unlvs\documents\x86_64-w64-mingw32\x86_64-w64-mingw32\include\stdio.h:1386,
                 from 
c:\users\unlvs\documents\x86_64-w64-mingw32\x86_64-w64-mingw32\include\c++\13.0.0\cstdio:42,
                 from ../../../include/fast_io_legacy_impl/c/impl.h:3,
                 from ../../../include/fast_io.h:18,
of module ./../../../include/fast_io.h, imported at iobuf_file.cc:1:
c:\users\unlvs\documents\x86_64-w64-mingw32\x86_64-w64-mingw32\include\swprintf.inl:14:
 note: '#define __mingw_ovr static __attribute__ ((__unused__)) __inline__ 
__cdecl'
   14 | #define __mingw_ovr static __attribute__ ((__unused__)) __inline__ 
__cdecl
      |
In file included from 
c:\users\unlvs\documents\x86_64-w64-mingw32\x86_64-w64-mingw32\include\_mingw.h:10,
                 from 
c:\users\unlvs\documents\x86_64-w64-mingw32\x86_64-w64-mingw32\include\corecrt.h:10,
                 from 
c:\users\unlvs\documents\x86_64-w64-mingw32\x86_64-w64-mingw32\include\crtdefs.h:10,
                 from 
c:\users\unlvs\documents\x86_64-w64-mingw32\x86_64-w64-mingw32\include\stddef.h:7,
                 from 
c:\users\unlvs\documents\x86_64-w64-mingw32\x86_64-w64-mingw32\lib\gcc\x86_64-w64-mingw32\13.0.0\include\stddef.h:1,
                 from 
c:\users\unlvs\documents\x86_64-w64-mingw32\x86_64-w64-mingw32\include\c++\13.0.0\cstddef:50,
                 from ../../../include/fast_io_core.h:13,
                 from ../../../include/fast_io_freestanding.h:12,
                 from ../../../include/fast_io_hosted.h:17,
                 from ../../../include/fast_io_device.h:10,
of module ./../../../include/fast_io_device.h, imported at iobuf_file.cc:2:
c:\users\unlvs\documents\x86_64-w64-mingw32\x86_64-w64-mingw32\include\_mingw_mac.h:286:
 note: '#define __mingw_ovr inline __cdecl'
  286 | #  define __mingw_ovr  inline __cdecl
      |
c:\users\unlvs\documents\x86_64-w64-mingw32\x86_64-w64-mingw32\include\wchar.h:1263:3:
 error: '__mingw_ovr' does not name a type
1263 |   __mingw_ovr
      |   ^~~~~~~~~~~
c:\users\unlvs\documents\x86_64-w64-mingw32\x86_64-w64-mingw32\include\wchar.h:1267:3:
 error: '__mingw_ovr' does not name a type
1267 |   __mingw_ovr
      |   ^~~~~~~~~~~
c:\users\unlvs\documents\x86_64-w64-mingw32\x86_64-w64-mingw32\include\c++\13.0.0\cwchar:191:11:
 error: 'wcstod' has not been declared in '::'
  191 |   using ::wcstod;
      |           ^~~~~~
c:\users\unlvs\documents\x86_64-w64-mingw32\x86_64-w64-mingw32\include\c++\13.0.0\cwchar:193:11:
 error: 'wcstof' has not been declared in '::'
  193 |   using ::wcstof;
      |           ^~~~~~
c:\users\unlvs\documents\x86_64-w64-mingw32\x86_64-w64-mingw32\include\c++\13.0.0\cwchar:283:14:
 error: 'wcstof' has not been declared in 'std'
  283 |   using std::wcstof;
      |              ^~~~~~

C:\Users\unlvs\Documents\fast_io\benchmark\0002.file_io_tsc\time>
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows



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

Reply via email to