You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With mingw (GCC 11.2.0 x86_64-64-mingw32) compiler I have the following error:
[build] In file included from I:/code/test_websocketpp/build/vcpkg_installed/x64-windows/include/websocketpp/concurrency/basic.hpp:31,
[build] from I:/code/test_websocketpp/build/vcpkg_installed/x64-windows/include/websocketpp/config/core_client.hpp:38,
[build] from I:/code/test_websocketpp/build/vcpkg_installed/x64-windows/include/websocketpp/config/asio_no_tls_client.hpp:31,
[build] from I:/code/test_websocketpp/ws-client.cpp:1:
[build] I:/code/test_websocketpp/build/vcpkg_installed/x64-windows/include/websocketpp/common/thread.hpp:63:14: fatal error: boost/thread.hpp: No such file or directory
[build] 63 | #include <boost/thread.hpp>
[build] | ^~~~~~~~~~~~~~~~~~
With MSVC I have the following error:
[build] I:\code\test_websocketpp\build\vcpkg_installed\x86-windows\include\websocketpp/common/random.hpp(59,18): fatal error C1083: Cannot open include file: 'boost/random/uniform_int_distribution.hpp': No such file or directory [I:\code\test_websocketpp\build\ws-client.vcxproj]
Both seems to be lacking some boost files.
So I've added entire boost to my vcpkg.json and wait for it to install and now my build folder is of 1GB size...
Thois solved problem with MSVC, but next mingw error was undefined reference to '__imp_WSAStartup', so I linked ws2_32 library.
I'm trying to run this code from this example on Windows with vscode + cmake + vcpkg:
ws-client.cpp
CMakeLists.txt
vcpkg.json
With mingw (GCC 11.2.0 x86_64-64-mingw32) compiler I have the following error:
With MSVC I have the following error:
Both seems to be lacking some boost files.
So I've added entire
boost
to my vcpkg.json and wait for it to install and now mybuild
folder is of 1GB size...Thois solved problem with MSVC, but next mingw error was
undefined reference to '__imp_WSAStartup'
, so I linkedws2_32
library.Final version worked for me with both compilers:
CMakeLists.txt
vcpkg.json
Is there a simpler way to compile the same example?
The text was updated successfully, but these errors were encountered: