socket.io-client-cpp icon indicating copy to clipboard operation
socket.io-client-cpp copied to clipboard

Cannot build without boost

Open eitanpinchover opened this issue 4 years ago • 2 comments

After following the steps of the installation instructions, and trying to build, I'm receiving the following compilation error: Cannot open include file: 'boost/bind.hpp': No such file or directory, I noticed that boost has recently removed from this project dependencies, so is it possible it is not entirely removed?

eitanpinchover avatar Jun 24 '21 13:06 eitanpinchover

Hi, if you are using CMake you should be able to build it without boost. If you are trying to build it without CMake we've updated the build instructions as you need to add some extra definitions. Can you check if the issue is still there?

jmigual avatar Feb 25 '22 08:02 jmigual

#ifndef SIO_CLIENT_IMPL_H #define SIO_CLIENT_IMPL_H

#include #ifdef _WIN32

 #define ASIO_STANDALONE
 #define _WEBSOCKETPP_CPP11_STL_

#define INTIALIZER(TYPE) #else #define WEBSOCKETPP_CPP11_STL 1 #define INTIALIZER(TYPE) (TYPE) #endif #include <websocketpp/client.hpp> #if _DEBUG #if SIO_TLS #include <websocketpp/config/debug_asio.hpp> typedef websocketpp::config::debug_asio_tls client_config; #else #include <websocketpp/config/debug_asio_no_tls.hpp> typedef websocketpp::config::debug_asio client_config; #endif //SIO_TLS

Salitanr avatar Mar 09 '22 06:03 Salitanr