cpprestsdk web_socket линковка
От: loggik  
Дата: 23.04.20 18:54
Оценка:
Приветствую.

В проекте нужен web_socket класс из библиотки https://github.com/microsoft/cpprestsdk

Установка cpprestsdk и boost-asio
vcpkg install cpprestsdk:x86-windows
vcpkg install boost-asio:x86-windows
vcpkg integrate install

проект на VS 2015, Win7 x64

тестовый код

#include <cpprest/ws_client.h>
using namespace web;
using namespace web::websockets::client;

websocket_client client;
client.connect(U("ws://localhost:1234")).then([]() { /* We've finished connecting. */ });



При компиляции ошибки линкера

Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "public: void __thiscall web::websockets::client::details::websocket_client_task_impl::close_pending_tasks_with_error(class web::websockets::client::websocket_exception const &)" (?close_pending_tasks_with_error@websocket_client_task_impl@details@client@websockets@web@@QAEXABVwebsocket_exception@345@@Z) referenced in function __catch$??R<lambda_6faaa49c60b61750ef16c4ff707b1ae7>@@QBEXV?$task@X@Concurrency@@@Z$0

Error LNK2019 unresolved external symbol "public: __thiscall web::websockets::client::details::websocket_client_task_impl::websocket_client_task_impl(class web::websockets::client::websocket_client_config)" (??0websocket_client_task_impl@details@client@websockets@web@@QAE@Vwebsocket_client_config@234@@Z) referenced in function "public: __thiscall std::_Ref_count_obj<class web::websockets::client::details::websocket_client_task_impl>::_Ref_count_obj<class web::websockets::client::details::websocket_client_task_impl><class web::websockets::client::websocket_client_config>(class web::websockets::client::websocket_client_config &&)" (??$?0Vwebsocket_client_config@client@websockets@web@@@?$_Ref_count_obj@Vwebsocket_client_task_impl@details@client@websockets@web@@@std@@QAE@$$QAVwebsocket_client_config@client@websockets@web@@@Z)


Подскажите чего не хватает тут?
Благодарю за помощь.
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.