We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在新版的msys2(msys2-x86_64-20200629.exe)上编译tolua_runtime会报上面的错误。 原因是新版的msys2中已经带有了inet_pton了,即inet_pton已经存在于mingw的ws2tcpip.h文件了,将luasocket/inet.c和luasocket.h中有关该函数相关声明与定义注释掉以后,可以编译通过。 https://docs.microsoft.com/zh-cn/windows/win32/api/ws2tcpip/nf-ws2tcpip-inet_pton
luasocket仓库那边也提交过相关的Issue:lunarmodules/luasocket#298
The text was updated successfully, but these errors were encountered:
luasocket/inet.h 中删除 LUASOCKET_INET_PTON 定义就编译通过了。
#ifdef __MINGW32__ #define LUASOCKET_INET_PTON #endif
最新版 luasocket 已删除了这个。
Sorry, something went wrong.
是这个意思
No branches or pull requests
在新版的msys2(msys2-x86_64-20200629.exe)上编译tolua_runtime会报上面的错误。
原因是新版的msys2中已经带有了inet_pton了,即inet_pton已经存在于mingw的ws2tcpip.h文件了,将luasocket/inet.c和luasocket.h中有关该函数相关声明与定义注释掉以后,可以编译通过。
https://docs.microsoft.com/zh-cn/windows/win32/api/ws2tcpip/nf-ws2tcpip-inet_pton
luasocket仓库那边也提交过相关的Issue:lunarmodules/luasocket#298
The text was updated successfully, but these errors were encountered: