sniper00 / moon

A lightweight game server framework implemented with Actor Model
MIT License
721 stars 158 forks source link

编译报错 #162

Closed lchannng closed 9 months ago

lchannng commented 9 months ago

gcc version 13.2.1 20230801 (GCC)

In file included from ../../../moon-src/core/worker.h:4,
                 from ../../../moon-src/core/server.h:6,
                 from ../../../lualib-src/lua_moon.cpp:8:
../../../moon-src/core/network/socket.h:95:18: error: declaration of ‘uint32_t moon::socket_server::udp(uint32_t, std::string_view, uint16_t)’ changes meaning of ‘udp’ [-Wchanges-meaning]
   95 |         uint32_t udp(uint32_t owner, std::string_view host, uint16_t port);
      |                  ^~~
../../../moon-src/core/network/socket.h:77:13: note: used here to mean ‘class asio::ip::udp’
   77 |             udp::endpoint from_ep;
      |             ^~~
In file included from ../../../third/asio.hpp:143,
                 from ../../../moon-src/core/network/socket.h:4:
../../../third/asio/ip/udp.hpp:42:7: note: declared here
   42 | class udp
      |       ^~~