i am very very stuck ! with using socket.io-client-cpp

Write your question here.

hi all,

I am trying to use socket.io-client-cpp and finding myself in over my head when i look a the syntax of the library let a lone have any idear of what i should do to correct the error. I have been trying for the last week and a half but finding im not getting anywhere. Im really hoping some one on here can help me with this issues.

Im using visual studios 2017

my code

#include"internal/sio_client_impl.h"
#include"stdafx.h"

int main() {

sio::client h;
h.connect("http://127.0.0.1:3000");
}



Errors i am getting

● Started at 18:51:08
1>------ Build started: Project: boost_thread_test, Configuration: Debug
x64 ------
1>boost_thread_test.cpp
1>c:\librarys\socket.io-client-cpp-master\lib\websocketpp\websocketpp\error.hpp(226): error C2259: 'websocketpp::error::category': cannot instantiate abstract class
1>c:\librarys\socket.io-client

-cpp-master\lib\websocketpp\websocketpp\error.hpp(226): note: due to following members:
1>c:\librarys\socket.io-client-cpp-master\lib\websocketpp\websocketpp\error.hpp(226): note: 'const char *std::error_category::name(void) noexcept const': is abstract
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.14.26428\include\system_error(83): note: see declaration of 'std::error_category::name'
1>c:\librarys\socket.io-client-cpp-master\lib\websocketpp\websocketpp\frame.hpp(831): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data
1>c:\librarys\socket.io-client-cpp-master\lib\websocketpp\websocketpp\processors\base.hpp(165): error C2694: 'const char *websocketpp::processor::error::processor_category::name(void) const': overriding virtual function has less restrictive exception specification than base class virtual member function 'const char *std::error_category::name(void) noexcept const'
1>c:\librarys\socket.io-client-cpp-master\lib\websocketpp\websocketpp\processors\base.hpp(165): note: see declaration of 'websocketpp::processor::error::processor_category::name'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.14.26428\include\system_error(83): note: see declaration of 'std::error_category::name'
1>c:\librarys\socket.io-client-cpp-master\lib\websocketpp\websocketpp\transport\base\connection.hpp(187): error C2694: 'const char *websocketpp::transport::error::category::name(void) const': overriding virtual function has less restrictive exception specification than base class virtual member function 'const char *std::error_category::name(void) noexcept const'
1>c:\librarys\socket.io-client-cpp-master\lib\websocketpp\websocketpp\transport\base\connection.hpp(187): note: see declaration of 'websocketpp::transport::error::category::name'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.14.26428\include\system_error(83): note: see declaration of 'std::error_category::name'
1>c:\librarys\socket.io-client-cpp-master\lib\websocketpp\websocketpp\common\md5.hpp(367): warning C4267: '+=': conversion from 'size_t' to 'websocketpp::md5::md5_word_t', possible loss of data
1>c:\librarys\socket.io-client-cpp-master\lib\websocketpp\websocketpp\sha1\sha1.hpp(176): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data
1>c:\librarys\socket.io-client-cpp-master\lib\websocketpp\websocketpp\transport\iostream\base.hpp(77): error C2694: 'const char *websocketpp::transport::iostream::error::category::name(void) const': overriding virtual function has less restrictive exception specification than base class virtual member function 'const char *std::error_category::name(void) noexcept const'
1>c:\librarys\socket.io-client-cpp-master\lib\websocketpp\websocketpp\transport\iostream\base.hpp(77): note: see declaration of 'websocketpp::transport::iostream::error::category::name'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.14.26428\include\system_error(83): note: see declaration of 'std::error_category::name'
1>c:\librarys\socket.io-client-cpp-master\lib\websocketpp\websocketpp\extensions\extension.hpp(65): error C2694: 'const char *websocketpp::extensions::error::category::name(void) const': overriding virtual function has less restrictive exception specification than base class virtual member function 'const char *std::error_category::name(void) noexcept const'
1>c:\librarys\socket.io-client-cpp-master\lib\websocketpp\websocketpp\extensions\extension.hpp(65): note: see declaration of 'websocketpp::extensions::error::category::name'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.14.26428\include\system_error(83): note: see declaration of 'std::error_category::name'
1>c:\librarys\socket.io-client-cpp-master\lib\websocketpp\websocketpp\transport\asio\base.hpp(205): error C2694: 'const char *websocketpp::transport::asio::error::category::name(void) const': overriding virtual function has less restrictive exception specification than base class virtual member function 'const char *std::error_category::name(void) noexcept const'
1>c:\librarys\socket.io-client-cpp-master\lib\websocketpp\websocketpp\transport\asio\base.hpp(205): note: see declaration of 'websocketpp::transport::asio::error::category::name'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.14.26428\include\system_error(83): note: see declaration of 'std::error_category::name'
1>c:\librarys\socket.io-client-cpp-master\lib\websocketpp\websocketpp\transport\asio\security\base.hpp(107): error C2694: 'const char *websocketpp::transport::asio::socket::socket_category::name(void) const': overriding virtual function has less restrictive exception specification than base class virtual member function 'const char *std::error_category::name(void) noexcept const'
1>c:\librarys\socket.io-client-cpp-master\lib\websocketpp\websocketpp\transport\asio\security\base.hpp(107): note: see declaration of 'websocketpp::transport::asio::socket::socket_category::name'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.14.26428\include\system_error(83): note: see declaration of 'std::error_category::name'
1>Done building project "boost_thread_test.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
● Finished at 18:51:12 (total time 4.27s)
Topic archived. No new replies allowed.