Hi guys,
The past 2 days, I have tried to make a console application that connects to a Socket-io Back-End. I'm not experienced in c++ and configuring external dependencies.
The errors I get:
I have search for hours on google, on some says :
- The error came from the fact that im trying to compile my application in 64 bit and Boost library is in 32 bits.
- I need to put extra defined constant in the header of my files, in order to skip these kind of error.
Im Using:
- Boost 1.55.0:
https://www.boost.org/users/history/version_1_55_0.html
- RapidJson 1.1.0:
https://github.com/Tencent/rapidjson/releases
- Websocketpp 0.8.1:
https://github.com/zaphoyd/websocketpp/releases
- Visual Studio 2019
- C++14
- Windows 10
I have included the dependencies via VC++ Directories.
Im really lost on this. Can someone please give me hints, on help on this ? I have posted the solution on GitHub which you guys can download.
GitHub Source:
https://github.com/isaelblais/socket-io-console.git
Thanks in advance
Maype
The past 2 days, I have tried to make a console application that connects to a Socket-io Back-End. I'm not experienced in c++ and configuring external dependencies.
The errors I get:
Code
Severity Code Description Project File Line Suppression State
Error LNK1120 2 unresolved externals ConsoleSocketIO ...\x64\Debug\ConsoleSocketIO.exe 1
Error (active) E1097 unknown attribute "no_init_all" ConsoleSocketIO C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h 3886
Error LNK2001 unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ) ... \sio_client_impl.obj 1
Error LNK2001 unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ) ... \sio_socket.obj 1
Error LNK2019 unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ) referenced in function "void __cdecl boost::system::`dynamic initializer for 'errno_ecat''(void)" (??__Eerrno_ecat@system@boost@@YAXXZ) ... \sio_client.obj 1
Error LNK2001 unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ) ... \sio_client_impl.obj 1
Error LNK2001 unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ) ... \sio_socket.obj 1
Error LNK2019 unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ) referenced in function "public: __cdecl boost::system::error_code::error_code(void)" (??0error_code@system@boost@@QEAA@XZ) ... \sio_client.obj 1I have search for hours on google, on some says :
- The error came from the fact that im trying to compile my application in 64 bit and Boost library is in 32 bits.
- I need to put extra defined constant in the header of my files, in order to skip these kind of error.
Im Using:
- Boost 1.55.0:
https://www.boost.org/users/history/version_1_55_0.html
- RapidJson 1.1.0:
https://github.com/Tencent/rapidjson/releases
- Websocketpp 0.8.1:
https://github.com/zaphoyd/websocketpp/releases
- Visual Studio 2019
- C++14
- Windows 10
I have included the dependencies via VC++ Directories.
Im really lost on this. Can someone please give me hints, on help on this ? I have posted the solution on GitHub which you guys can download.
GitHub Source:
https://github.com/isaelblais/socket-io-console.git
Thanks in advance
Maype


