Build websocketpp without using boost

2,269 views
Skip to first unread message

JIGAR MISTRY

unread,
Sep 15, 2017, 7:53:42 AM9/15/17
to WebSocket++
I cloned the https://github.com/zaphoyd/websocketpp and want to build a library without using boost. But this project seems to have dependency on boost. Is there any way I can bypass or replace this dependency.

Peter Thorson

unread,
Sep 15, 2017, 8:21:26 AM9/15/17
to JIGAR MISTRY, WebSocket++
If you have a C++11 compiler there are no core dependencies on boost. If you want to use the Asio transport you’ll need the standalone version of asio from think-async.com.  More details at https://docs.websocketpp.org/faq.html, look at the “Can WebSocket++ be used without Boost?” and “Can WebSocket++ be used with standalone Asio” questions.

Best,

Peter

On 2017-Sep-15, at 06:53, JIGAR MISTRY <jigarmis...@gmail.com> wrote:

I cloned the https://github.com/zaphoyd/websocketpp and want to build a library without using boost. But this project seems to have dependency on boost. Is there any way I can bypass or replace this dependency.

--
You received this message because you are subscribed to the Google Groups "WebSocket++" group.
To unsubscribe from this group and stop receiving emails from it, send an email to websocketpp...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Robin Tan

unread,
Oct 16, 2017, 5:58:28 AM10/16/17
to WebSocket++
I can compile the sample server fine without boost using think tank async, but the client, it still links to boost.

I have done the same as the server

#define ASIO_STANDALONE
#define _WEBSOCKETPP_CPP11_TYPE_TRAITS_

#include <websocketpp/config/asio_no_tls_client.hpp>
#include <websocketpp/client.hpp>
Reply all
Reply to author
Forward
0 new messages