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
Drogon does not build shared library because of using thread_local in lib/src/Utilities.cc.
To Reproduce
Build drogon with -DBUILD_SHARED_LIBS:BOOL=ON
Expected behavior
Successful build.
Desktop (please complete the following information):
OS: Windows 11
MSYS2 CLANG64
Additional context
Errors produced:
xxx/drogon/lib/src/Utilities.cc:1235:46: error: 'hash' cannot be thread local when declared 'dllexport'
1235 | thread_local trantor::utils::Hash256 hash;
| ^
xxx/drogon/lib/src/Utilities.cc:1236:29: error: 'i' cannot be thread local when declared 'dllexport'
1236 | thread_local size_t i = 0;
The text was updated successfully, but these errors were encountered:
Describe the bug
Drogon does not build shared library because of using
thread_local
inlib/src/Utilities.cc
.To Reproduce
Build drogon with
-DBUILD_SHARED_LIBS:BOOL=ON
Expected behavior
Successful build.
Desktop (please complete the following information):
Additional context
Errors produced:
The text was updated successfully, but these errors were encountered: