Installing socket.io C++ -
i try work socket.io in c++ can't seem example running. first asked me convert project visual studio (which 2015). did that. missing libraries offcourse (boost, websocket++, rapidjson). added them additional libraries in project settings. searching boost.lib. boost.lib doesnt exist in boost library installed on pc, deleted dependency list. figured included boost, why search lib doesn't exist. ran bjam.exe , b2.exe etc boost, if there boost.lib should there guess , isn't.
i got error: https://msdn.microsoft.com/en-us/library/f6xx1b1z.aspx added msvcrt.lib , msvcmrt.lib linker's additional dependencies property. caused errors in included image..
now steps seemed fix problems had, create more errors in process. not understand how run project , can't find explanation of steps need take.
can explain doing wrong?
https://github.com/socketio/socket.io-client-cpp
that try run, included siochatexample
thanks in advance!
i think many errors because of vc++
version. creator of project socket.io-c++
, used vc++ 11.0
if use vc++ 14.0
build it, error. suggestion should use vc++ 12.0
in cast want use prebuilt libraries:
i myself try many solutions, goodness fix all
you can them here prebuilt-libraries-for-socket.io-c++
for visual studio 2015, u need are:
- install more
visual studio 2013
(i installvisual studio 2013 community
)vc++ 12.0
(prebuilt-lib built invc++ 12.0
) - change project platform toolset visaul studio 2013 (v120)
- link libraries project
libraries need are:
libboost_date_time-vc120-mt-gd-1_50.lib
libboost_random-vc120-mt-gd-1_50.lib
libboost_system-vc120-mt-gd-1_50.lib
sioclient.lib
include folder of *.h (header of socket.io-c++
) project
build , run
Comments
Post a Comment