dhbaird / easywsclient

A short and sweet WebSocket client for C++
MIT License
741 stars 205 forks source link

getting error when im trying to connect #100

Closed reussssya closed 1 year ago

reussssya commented 1 year ago

error LNK2019: unresolved external symbol "public: static class easywsclient::WebSocket * __cdecl easywsclient::WebSocket::from_url(class std::basic_string<char,struct std::char_traits, ... bla bla bla

I have installed via vcpkg websockets like in this solution on stackoverflow -> https://stackoverflow.com/questions/63519676/error-lnk2001-unresolved-external-symbol-webwebsocketsclientwebsocket-cal . but i still have that problem

Code :

int main()
{
    WebSocket::pointer ws = WebSocket::from_url("ws://178.32.14.213:27121");
    if(ws) std::cout << "nice";
    //RustOofID roi;
    //roi.sendTeamMessage("Hello");
    return 0;
}
reussssya commented 1 year ago

I am using vs code

reussssya commented 1 year ago

Solved by adding .cpp file wseasyclient