F this error
g++ -LC:\Users\Kosmolet\vcpkg\installed\x64-windows-static\debug\lib -lsioclient -shared -o shared_lib.dll shared_lib.o -Wl,--out-implib,libshared_lib.a
shared_lib.o:shared_lib.cpp:(.text+0x31): undefined reference to sio::client::~client()' shared_lib.o:shared_lib.cpp:(.text+0x68): undefined reference to sio::client::client()'
collect2.exe: error: ld returned 1 exit status
Hi, it seems that the socket io shared DLL is not being found by the compiler
Have you tried following the instructions to compile without CMake?
i tried all instructions and they all failed
Adding this to my CMakeLists.txt solved it for me;
find_library(SIOCLIENT_LIBRARY sioclient)
target_include_directories(foo PRIVATE ${sioclient})
target_link_libraries(foo PRIVATE ${SIOCLIENT_LIBRARY})