help with error: reference to 'byte' is ambiguous

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, Dear Sir or Madam,

I am using MinGW64 and the following is version information:
g++.exe (MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.


When building my application, so many such errors occurred from your library and head files. Please see a text file attached for details.

error: reference to 'byte' is ambiguous


Could you tell me how to quickly fix such errors? I look forward to your help and your early response will be highly appreciated.

Thanks and Regards,

Dingjun Chen

Dingjun Chen  | Software Developer

[Geotech Airborne Geophysical Surveys]

Geotech Ltd. dba Geotech Airborne | 270 INDUSTRIAL PKY S | AURORA ON CA | L4G 3T9
T: +1 905 841 5004 | Dingjun.Chen@xxxxxxxxxxxxxxxxxxx<mailto:Dingjun.Chen@xxxxxxxxxxxxxxxxxxx> | www.geotechairborne.com<www.geotech.ca>

P Please consider the environment before printing this email

This message may contain PRIVILEGED AND PROPRIETARY INFORMATION intended solely for the use of the addressee (s) named above. Any disclosure, distribution, copying, or use of the information by others is strictly prohibited. If you have received this message in error, please advise the sender by immediate reply and delete the original message.
ÿþ[ 36%] Built target PHCSharedlibrary

[ 37%] Building CXX object MainProject/src/CMakeFiles/PHC_EXEProject.dir/CalSection.cpp.obj

In file included from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/wtypes.h:8,

                 from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/winscard.h:10,

                 from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/windows.h:97,

                 from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/winsock2.h:23,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/msw/wrapwin.h:46,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/msw/init.h:27,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/init.h:58,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/app.h:23,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/wx.h:25,

                 from C:/Users/Dingjun.Chen/PHC_cmake/PHC_EXE_Lib_mingw64/MainProject/include/GenSection.h:13,

                 from C:\Users\Dingjun.Chen\PHC_cmake\PHC_EXE_Lib_mingw64\MainProject\src\CalSection.cpp:17:

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:64:11: error: reference to 'byte' is ambiguous

   64 |   typedef byte cs_byte;

      |           ^~~~

In file included from C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/bits/memory_resource.h:38,

                 from C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/string:58,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/stringimpl.h:66,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/unichar.h:15,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/strvararg.h:19,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/string.h:37,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/memory.h:15,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/object.h:19,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/gdiobj.h:14,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/colour.h:15,

                 from C:\Users\Dingjun.Chen\PHC_cmake\PHC_EXE_Lib_mingw64\MainProject\src\CalSection.cpp:12:

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:397:170: error: reference to 'byte' is ambiguous

  397 |   typedef void (__RPC_API *CS_TYPE_TO_NETCS_ROUTINE)(RPC_BINDING_HANDLE hBinding,unsigned __LONG32 ulNetworkCodeSet,void *pLocalData,unsigned __LONG32 ulLocalDataLength,byte *pNetworkData,unsigned __LONG32 *pulNetworkDataLength,error_status_t *pStatus);

      |                                                                                                                                                                          ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:397:170: error: 'byte' has not been declared

  397 |   typedef void (__RPC_API *CS_TYPE_TO_NETCS_ROUTINE)(RPC_BINDING_HANDLE hBinding,unsigned __LONG32 ulNetworkCodeSet,void *pLocalData,unsigned __LONG32 ulLocalDataLength,byte *pNetworkData,unsigned __LONG32 *pulNetworkDataLength,error_status_t *pStatus);

      |                                                                                                                                                                          ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:398:119: error: reference to 'byte' is ambiguous

  398 |   typedef void (__RPC_API *CS_TYPE_FROM_NETCS_ROUTINE)(RPC_BINDING_HANDLE hBinding,unsigned __LONG32 ulNetworkCodeSet,byte *pNetworkData,unsigned __LONG32 ulNetworkDataLength,unsigned __LONG32 ulLocalBufferSize,void *pLocalData,unsigned __LONG32 *pulLocalDataLength,error_status_t *pStatus);

      |                                                                                                                       ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:398:119: error: 'byte' has not been declared

  398 |   typedef void (__RPC_API *CS_TYPE_FROM_NETCS_ROUTINE)(RPC_BINDING_HANDLE hBinding,unsigned __LONG32 ulNetworkCodeSet,byte *pNetworkData,unsigned __LONG32 ulNetworkDataLength,unsigned __LONG32 ulLocalBufferSize,void *pLocalData,unsigned __LONG32 *pulLocalDataLength,error_status_t *pStatus);

      |                                                                                                                       ^~~~

In file included from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/combaseapi.h:153,

                 from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objbase.h:14,

                 from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/ole2.h:17,

                 from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/wtypes.h:13:

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/wtypesbase.h:327:5: error: reference to 'byte' is ambiguous

  327 |     byte abData[1];

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/wtypesbase.h:349:5: error: reference to 'byte' is ambiguous

  349 |     byte abData[1];

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/wtypesbase.h:364:5: error: reference to 'byte' is ambiguous

  364 |     byte *pData;

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

In file included from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/combaseapi.h:155:

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidlbase.h:2001:5: error: reference to 'byte' is ambiguous

 2001 |     byte *pv,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidlbase.h:2001:5: error: 'byte' has not been declared

 2001 |     byte *pv,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidlbase.h:2011:11: error: reference to 'byte' is ambiguous

 2011 |     const byte *pv,

      |           ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidlbase.h:2026:5: error: reference to 'byte' is ambiguous

 2026 |     byte *pv,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidlbase.h:2026:5: error: 'byte' has not been declared

 2026 |     byte *pv,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidlbase.h:2036:11: error: reference to 'byte' is ambiguous

 2036 |     const byte *pv,

      |           ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

In file included from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/unknwn.h:55,

                 from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:767,

                 from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objbase.h:66:

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/wtypes.h:54:5: error: reference to 'byte' is ambiguous

   54 |     byte data[1];

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/wtypes.h:62:5: error: reference to 'byte' is ambiguous

   62 |     byte data[1];

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/wtypes.h:67:5: error: reference to 'byte' is ambiguous

   67 |     byte data[1];

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/wtypes.h:71:5: error: reference to 'byte' is ambiguous

   71 |     byte data[1];

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/wtypes.h:76:5: error: reference to 'byte' is ambiguous

   76 |     byte data[1];

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/wtypes.h:81:5: error: reference to 'byte' is ambiguous

   81 |     byte data[1];

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/wtypes.h:307:5: error: reference to 'byte' is ambiguous

  307 |     byte pBuffer[1];

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:8453:9: error: reference to 'byte' is ambiguous

 8453 |         byte *pbData,

      |         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:8453:9: error: 'byte' has not been declared

 8453 |         byte *pbData,

      |         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:8961:5: error: reference to 'byte' is ambiguous

 8961 |     byte *reserved1,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:8961:5: error: 'byte' has not been declared

 8961 |     byte *reserved1,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:8985:5: error: reference to 'byte' is ambiguous

 8985 |     byte *reserved2,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:8985:5: error: 'byte' has not been declared

 8985 |     byte *reserved2,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:9004:5: error: reference to 'byte' is ambiguous

 9004 |     byte *reserved1,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:9004:5: error: 'byte' has not been declared

 9004 |     byte *reserved1,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:9030:5: error: reference to 'byte' is ambiguous

 9030 |     byte *reserved2,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:9030:5: error: 'byte' has not been declared

 9030 |     byte *reserved2,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:9485:5: error: reference to 'byte' is ambiguous

 9485 |     byte *pv,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:9485:5: error: 'byte' has not been declared

 9485 |     byte *pv,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:9496:11: error: reference to 'byte' is ambiguous

 9496 |     const byte *pv,

      |           ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:9513:5: error: reference to 'byte' is ambiguous

 9513 |     byte *pv,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:9513:5: error: 'byte' has not been declared

 9513 |     byte *pv,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:9525:11: error: reference to 'byte' is ambiguous

 9525 |     const byte *pv,

      |           ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:9933:5: error: reference to 'byte' is ambiguous

 9933 |     byte data[1];

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:11398:11: error: reference to 'byte' is ambiguous

11398 |     const byte *pv,

      |           ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:11409:11: error: reference to 'byte' is ambiguous

11409 |     const byte *pv,

      |           ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:11424:11: error: reference to 'byte' is ambiguous

11424 |     const byte *pv,

      |           ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:11436:11: error: reference to 'byte' is ambiguous

11436 |     const byte *pv,

      |           ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

In file included from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/msxml.h:311,

                 from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/urlmon.h:458,

                 from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objbase.h:163:

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/oaidl.h:587:5: error: reference to 'byte' is ambiguous

  587 |     byte *pRecord;

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

mingw32-make[2]: *** [MainProject\src\CMakeFiles\PHC_EXEProject.dir\build.make:586: MainProject/src/CMakeFiles/PHC_EXEProject.dir/CalSection.cpp.obj] Error 1

mingw32-make[1]: *** [CMakeFiles\Makefile2:171: MainProject/src/CMakeFiles/PHC_EXEProject.dir/all] Error 2

mingw32-make: *** [makefile:135: all] Error 2

PS C:\Users\Dingjun.Chen\PHC_cmake\PHC_EXE_Lib_mingw64\build> mingw32-make >> errors.txt

In file included from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/wtypes.h:8,

                 from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/winscard.h:10,

                 from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/windows.h:97,

                 from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/winsock2.h:23,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/msw/wrapwin.h:46,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/msw/init.h:27,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/init.h:58,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/app.h:23,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/wx.h:25,

                 from C:/Users/Dingjun.Chen/PHC_cmake/PHC_EXE_Lib_mingw64/MainProject/include/GenSection.h:13,

                 from C:\Users\Dingjun.Chen\PHC_cmake\PHC_EXE_Lib_mingw64\MainProject\src\CalSection.cpp:17:

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:64:11: error: reference to 'byte' is ambiguous

   64 |   typedef byte cs_byte;

      |           ^~~~

In file included from C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/bits/memory_resource.h:38,

                 from C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/string:58,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/stringimpl.h:66,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/unichar.h:15,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/strvararg.h:19,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/string.h:37,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/memory.h:15,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/object.h:19,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/gdiobj.h:14,

                 from C:/Users/Dingjun.Chen/Downloads/wxWidgets-3.2.2.1/include/wx/colour.h:15,

                 from C:\Users\Dingjun.Chen\PHC_cmake\PHC_EXE_Lib_mingw64\MainProject\src\CalSection.cpp:12:

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:397:170: error: reference to 'byte' is ambiguous

  397 |   typedef void (__RPC_API *CS_TYPE_TO_NETCS_ROUTINE)(RPC_BINDING_HANDLE hBinding,unsigned __LONG32 ulNetworkCodeSet,void *pLocalData,unsigned __LONG32 ulLocalDataLength,byte *pNetworkData,unsigned __LONG32 *pulNetworkDataLength,error_status_t *pStatus);

      |                                                                                                                                                                          ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:397:170: error: 'byte' has not been declared

  397 |   typedef void (__RPC_API *CS_TYPE_TO_NETCS_ROUTINE)(RPC_BINDING_HANDLE hBinding,unsigned __LONG32 ulNetworkCodeSet,void *pLocalData,unsigned __LONG32 ulLocalDataLength,byte *pNetworkData,unsigned __LONG32 *pulNetworkDataLength,error_status_t *pStatus);

      |                                                                                                                                                                          ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:398:119: error: reference to 'byte' is ambiguous

  398 |   typedef void (__RPC_API *CS_TYPE_FROM_NETCS_ROUTINE)(RPC_BINDING_HANDLE hBinding,unsigned __LONG32 ulNetworkCodeSet,byte *pNetworkData,unsigned __LONG32 ulNetworkDataLength,unsigned __LONG32 ulLocalBufferSize,void *pLocalData,unsigned __LONG32 *pulLocalDataLength,error_status_t *pStatus);

      |                                                                                                                       ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:398:119: error: 'byte' has not been declared

  398 |   typedef void (__RPC_API *CS_TYPE_FROM_NETCS_ROUTINE)(RPC_BINDING_HANDLE hBinding,unsigned __LONG32 ulNetworkCodeSet,byte *pNetworkData,unsigned __LONG32 ulNetworkDataLength,unsigned __LONG32 ulLocalBufferSize,void *pLocalData,unsigned __LONG32 *pulLocalDataLength,error_status_t *pStatus);

      |                                                                                                                       ^~~~

In file included from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/combaseapi.h:153,

                 from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objbase.h:14,

                 from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/ole2.h:17,

                 from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/wtypes.h:13:

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/wtypesbase.h:327:5: error: reference to 'byte' is ambiguous

  327 |     byte abData[1];

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/wtypesbase.h:349:5: error: reference to 'byte' is ambiguous

  349 |     byte abData[1];

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/wtypesbase.h:364:5: error: reference to 'byte' is ambiguous

  364 |     byte *pData;

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

In file included from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/combaseapi.h:155:

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidlbase.h:2001:5: error: reference to 'byte' is ambiguous

 2001 |     byte *pv,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidlbase.h:2001:5: error: 'byte' has not been declared

 2001 |     byte *pv,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidlbase.h:2011:11: error: reference to 'byte' is ambiguous

 2011 |     const byte *pv,

      |           ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidlbase.h:2026:5: error: reference to 'byte' is ambiguous

 2026 |     byte *pv,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidlbase.h:2026:5: error: 'byte' has not been declared

 2026 |     byte *pv,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidlbase.h:2036:11: error: reference to 'byte' is ambiguous

 2036 |     const byte *pv,

      |           ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

In file included from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/unknwn.h:55,

                 from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:767,

                 from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objbase.h:66:

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/wtypes.h:54:5: error: reference to 'byte' is ambiguous

   54 |     byte data[1];

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/wtypes.h:62:5: error: reference to 'byte' is ambiguous

   62 |     byte data[1];

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/wtypes.h:67:5: error: reference to 'byte' is ambiguous

   67 |     byte data[1];

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/wtypes.h:71:5: error: reference to 'byte' is ambiguous

   71 |     byte data[1];

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/wtypes.h:76:5: error: reference to 'byte' is ambiguous

   76 |     byte data[1];

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/wtypes.h:81:5: error: reference to 'byte' is ambiguous

   81 |     byte data[1];

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/wtypes.h:307:5: error: reference to 'byte' is ambiguous

  307 |     byte pBuffer[1];

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:8453:9: error: reference to 'byte' is ambiguous

 8453 |         byte *pbData,

      |         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:8453:9: error: 'byte' has not been declared

 8453 |         byte *pbData,

      |         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:8961:5: error: reference to 'byte' is ambiguous

 8961 |     byte *reserved1,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:8961:5: error: 'byte' has not been declared

 8961 |     byte *reserved1,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:8985:5: error: reference to 'byte' is ambiguous

 8985 |     byte *reserved2,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:8985:5: error: 'byte' has not been declared

 8985 |     byte *reserved2,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:9004:5: error: reference to 'byte' is ambiguous

 9004 |     byte *reserved1,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:9004:5: error: 'byte' has not been declared

 9004 |     byte *reserved1,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:9030:5: error: reference to 'byte' is ambiguous

 9030 |     byte *reserved2,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:9030:5: error: 'byte' has not been declared

 9030 |     byte *reserved2,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:9485:5: error: reference to 'byte' is ambiguous

 9485 |     byte *pv,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:9485:5: error: 'byte' has not been declared

 9485 |     byte *pv,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:9496:11: error: reference to 'byte' is ambiguous

 9496 |     const byte *pv,

      |           ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:9513:5: error: reference to 'byte' is ambiguous

 9513 |     byte *pv,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:9513:5: error: 'byte' has not been declared

 9513 |     byte *pv,

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:9525:11: error: reference to 'byte' is ambiguous

 9525 |     const byte *pv,

      |           ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:9933:5: error: reference to 'byte' is ambiguous

 9933 |     byte data[1];

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:11398:11: error: reference to 'byte' is ambiguous

11398 |     const byte *pv,

      |           ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:11409:11: error: reference to 'byte' is ambiguous

11409 |     const byte *pv,

      |           ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:11424:11: error: reference to 'byte' is ambiguous

11424 |     const byte *pv,

      |           ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objidl.h:11436:11: error: reference to 'byte' is ambiguous

11436 |     const byte *pv,

      |           ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

In file included from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/msxml.h:311,

                 from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/urlmon.h:458,

                 from C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/objbase.h:163:

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/oaidl.h:587:5: error: reference to 'byte' is ambiguous

  587 |     byte *pRecord;

      |     ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/include/c++/13.2.0/cstddef:69:14: note: candidates are: 'enum class std::byte'

   69 |   enum class byte : unsigned char {};

      |              ^~~~

C:/Users/Dingjun.Chen/minGW64/mingw64/x86_64-w64-mingw32/include/rpcndr.h:63:25: note:                 'typedef unsigned char byte'

   63 |   typedef unsigned char byte;

      |                         ^~~~

mingw32-make[2]: *** [MainProject\src\CMakeFiles\PHC_EXEProject.dir\build.make:586: MainProject/src/CMakeFiles/PHC_EXEProject.dir/CalSection.cpp.obj] Error 1

mingw32-make[1]: *** [CMakeFiles\Makefile2:171: MainProject/src/CMakeFiles/PHC_EXEProject.dir/all] Error 2

mingw32-make: *** [makefile:135: all] Error 2

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux