skylicht-lab / skylicht-engine

Skylicht Engine is C++ Game Engine based on Irrlicht 3D. And my goal is to create a high-performance and lightweight Game Framework that can seamlessly function on both web and mobile platforms. This framework will be available to everyone for free.
MIT License
630 stars 51 forks source link

Failed to build on MSYS2 MINGW64 #163

Closed ghost closed 1 year ago

ghost commented 1 year ago
C:/msys64/home/Administrator/skylicht-engine/Projects/Skylicht/Network/Source/SocketIO/easywsclient.cpp:51:16: error: conflicting declaration 'typedef char int8_t'
   51 | typedef __int8 int8_t;
      |                ^~~~~~
In file included from C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/stdint.h:9,
                 from C:/msys64/mingw64/include/c++/12.2.0/cstdint:41,
                 from C:/msys64/mingw64/include/c++/12.2.0/bits/char_traits.h:731,
                 from C:/msys64/mingw64/include/c++/12.2.0/ios:40,
                 from C:/msys64/mingw64/include/c++/12.2.0/istream:38,
                 from C:/msys64/mingw64/include/c++/12.2.0/fstream:38,
                 from C:/msys64/home/Administrator/skylicht-engine/Projects/Skylicht/Network/Source/pch.h:61,
                 from C:/msys64/home/Administrator/skylicht-engine/Projects/Skylicht/Network/Source/SocketIO/easywsclient.cpp:18:
C:/msys64/mingw64/include/stdint.h:35:21: note: previous declaration as 'typedef signed char int8_t'
   35 | typedef signed char int8_t;
      |                     ^~~~~~
ninja: build stopped: subcommand failed.