You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I try to compile drogon with MinGW64.
Linker errors occur in hiredis when compiling drogon_ctrl and examples.
If don't build drogon_ctrl and examples or don't build redis, it will success.
When using the hiredis library alone, it works properly; when using Drogon alone, it works properly; however, when they are used together, they do not work properly. To Reproduce
Steps to reproduce the behavior:
D:/dev/mingw/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Users/97083/.conan2/p/b/hireddbb584c483d32/p/lib/libhiredis.a(sockcompat.c.obj): in function `win32_gai_strerror':
C:/Users/97083/.conan2/p/b/hireddbb584c483d32/b/src/sockcompat.c:146:(.text+0x3aa): undefined reference to `gai_strerrorA'
D:/dev/mingw/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Users/97083/.conan2/p/b/hireddbb584c483d32/p/lib/libhiredis.a(sockcompat.c.obj): in function `win32_poll':
C:/Users/97083/.conan2/p/b/hireddbb584c483d32/b/src/sockcompat.c:244:(.text+0x84a): undefined reference to `WSAPoll'
It looks like a ws2_32 linking issue, but explicitly adding ws2_32 in the CMakeLists did not resolve the problem.
I switch to MinGW 14.2 did not resolve the problem. Platform
OS: windows10
MinGW64:13.2 or 14.2
The text was updated successfully, but these errors were encountered:
Describe the bug
I try to compile drogon with MinGW64.
Linker errors occur in hiredis when compiling drogon_ctrl and examples.
If don't build drogon_ctrl and examples or don't build redis, it will success.
When using the hiredis library alone, it works properly; when using Drogon alone, it works properly; however, when they are used together, they do not work properly.
To Reproduce
Steps to reproduce the behavior:
It looks like a ws2_32 linking issue, but explicitly adding ws2_32 in the CMakeLists did not resolve the problem.
I switch to MinGW 14.2 did not resolve the problem.
Platform
The text was updated successfully, but these errors were encountered: