Skip to content

Instantly share code, notes, and snippets.

@oberstet
Created October 31, 2013 15:38
Show Gist options
  • Save oberstet/7251891 to your computer and use it in GitHub Desktop.
Save oberstet/7251891 to your computer and use it in GitHub Desktop.
oberstet@corei7-ubuntu:~/scm/wsperf$ clang++ -std=c++0x -stdlib++ -O3 -D_WEBSOCKETPP_CPP11_STL_ -I../websocketpp/ -I$BOOST_ROOT wsperf.cpp -L$BOOST_ROOT/stage/lib -lssl -lcrypto -lsystem -o wsperf
clang: warning: argument unused during compilation: '-stdlib++'
In file included from wsperf.cpp:6:
In file included from ./wspp-config.hpp:6:
In file included from ../websocketpp/websocketpp/config/asio_client.hpp:31:
In file included from ../websocketpp/websocketpp/config/core_client.hpp:37:
In file included from ../websocketpp/websocketpp/concurrency/basic.hpp:31:
In file included from ../websocketpp/websocketpp/common/thread.hpp:38:
In file included from /usr/include/c++/4.6/thread:37:
/usr/include/c++/4.6/chrono:666:7: error: static_assert expression is not an integral constant expression
static_assert(system_clock::duration::min()
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from wsperf.cpp:6:
In file included from ./wspp-config.hpp:7:
In file included from ../websocketpp/websocketpp/client.hpp:31:
In file included from ../websocketpp/websocketpp/roles/client_endpoint.hpp:31:
In file included from ../websocketpp/websocketpp/endpoint.hpp:31:
../websocketpp/websocketpp/connection.hpp:163:35: error: non-aggregate type 'const std::vector<int>' cannot be
initialized with an initializer list
static std::vector<int> const versions_supported = {0,7,8,13};
^ ~~~~~~~~~~
wsperf.cpp:44:20: error: no member named 'set_tcp_pre_init_handler' in
'websocketpp::client<wsperf_config<websocketpp::config::asio_client, open_handshake_stats> >'
m_endpoint.set_tcp_pre_init_handler(bind(&type::on_tcp_pre_init,this,::_1));
~~~~~~~~~~ ^
wsperf.cpp:181:58: note: in instantiation of member function
'handshake_test<websocketpp::client<wsperf_config<websocketpp::config::asio_client, open_handshake_stats> >
>::handshake_test' requested here
handshake_test<client<open_handshake_stats>> endpoint;
^
wsperf.cpp:45:20: error: no member named 'set_tcp_post_init_handler' in
'websocketpp::client<wsperf_config<websocketpp::config::asio_client, open_handshake_stats> >'
m_endpoint.set_tcp_post_init_handler(bind(&type::on_tcp_post_init,this,::_1));
~~~~~~~~~~ ^
4 errors generated.
oberstet@corei7-ubuntu:~/scm/wsperf$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment