error while adding libraries
-
C:\Users\inno\Desktop\QT\SioChatDemo\lib\websocketpp\websocketpp\transport\asio\connection.hpp:426: error: no matching function for call to 'make_shared(const boost::reference_wrapperboost::asio::io_context)'
lib::ref(*io_service));
^ -
Hi
You have to provide more information but my guess is that you do not have boost
installed. And hence it complains about it. -
@Bharth
So you made sure the .pro file and the location of boost matches up?CONFIG(release, debug|release): LIBS += -L$$PWD/../../../build/lib/Release/ -lsioclient else:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../build/lib/Debug/ -lsioclient CONFIG(release, debug|release): LIBS += -L$$PWD/../../../build/lib/Release/ -lboost_random else:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../build/lib/Debug/ -lboost_random CONFIG(release, debug|release): LIBS += -L$$PWD/../../../build/lib/Release/ -lboost_system else:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../build/lib/Debug/ -lboost_system CONFIG(release, debug|release): LIBS += -L$$PWD/../../../build/lib/Release/ -lboost_date_time else:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../build/lib/Debug/ -lboost_date_time
-
no ...Building Boost.Build engine
'cl' is not recognized as an internal or external command,
operable program or batch file.Failed to build Boost.Build engine.
Please consult bootstrap.log for further diagnostics.
showing like this....boost folder has system,random,date_time,dlls....etc
-
C:\Users\inno\Desktop\QT\SioChatDemo\lib\websocketpp\websocketpp\transport\asio\connection.hpp:426:
error: no matching function for call to 'make_shared(const boost::reference_wrapperboost::asio::io_context)'
lib::ref(*io_service));
^i added these paths in pro file
INCLUDEPATH += $$PWD/lib/rapidjson/include
INCLUDEPATH += $$PWD/lib/websocketpp
INCLUDEPATH += $$PWD/boostthanks in advance
-
@Bharth
well it dont know
boost::reference_wrapperboost::asio::io_context
try to see if u can find out where it livesso is that the ONLY error ?
might be something else than not linking boost then.
unless there is boost error all over. -
@Bharth
Hi
Well boost is not related to Qt at all.
But you did not answer the question.
Is that only boost related error u get or
do you have many ?Its hard to give you a tut as it depends on what you really downloaded from boost,
what compiler you have and overall how boost is being used in that project.