Skip to content

Conversation

@wangjia184
Copy link
Contributor

Fix the error below when building on Windows

PS D:\projects\ayida-lib\event-client> clang --version
clang version 19.1.7
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\LLVM\bin
PS D:\projects\ayida-lib\event-client> cmake --version
cmake version 4.1.0

CMake suite maintained and supported by Kitware (kitware.com/cmake).
 
D:\projects\ayida-lib\event-client\socket.io-client-cpp>cmake -BBuild -GNinja -DCMAKE_CXX_STANDARD=11
-- The C compiler identification is Clang 19.1.7 with GNU-like command-line
-- The CXX compiler identification is Clang 19.1.7 with GNU-like command-line
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/LLVM/bin/clang.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/LLVM/bin/clang++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - no
-- Found Threads: TRUE
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR)
-- Performing Test HAVE_FLAG__ffile_prefix_map_D__projects_ayida_lib_event_client_socket_io_client_cpp_Build__deps_catch2_src__
-- Performing Test HAVE_FLAG__ffile_prefix_map_D__projects_ayida_lib_event_client_socket_io_client_cpp_Build__deps_catch2_src__ - Success
-- Configuring done (10.5s)
-- Generating done (0.0s)
-- Build files have been written to: D:/projects/ayida-lib/event-client/socket.io-client-cpp/Build

D:\projects\ayida-lib\event-client\socket.io-client-cpp>cmake --build Build

D:/projects/ayida-lib/event-client/socket.io-client-cpp/src/internal/sio_packet.cpp:327:22: error: no member named 'all_of' in namespace 'std'
  327 |             if (std::all_of(pack_id_str.begin(), pack_id_str.end(), ::isdigit)) {
      |                 ~~~~~^

@jmigual jmigual merged commit 3b7be7e into socketio:master Aug 28, 2025
3 checks passed
@jmigual
Copy link
Collaborator

jmigual commented Aug 28, 2025

Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants