Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[package] websocketpp/0.8.2: Missing linkage to boost random lib #26452

Open
ibrawada opened this issue Jan 22, 2025 · 0 comments · May be fixed by #26453
Open

[package] websocketpp/0.8.2: Missing linkage to boost random lib #26452

ibrawada opened this issue Jan 22, 2025 · 0 comments · May be fixed by #26453
Labels
bug Something isn't working

Comments

@ibrawada
Copy link

ibrawada commented Jan 22, 2025

Description

Using the default options for websocketpp (asio == boost) there is a linker error that boost random lib cannot be found.

by extending the code in test_package to also create a client will result in linker errors.

#include <websocketpp/server.hpp>
#include <websocketpp/config/asio_no_tls.hpp>
#include <websocketpp/config/asio_client.hpp>
#include <websocketpp/client.hpp>


int main()
{
    websocketpp::server<websocketpp::config::asio> server;

    websocketpp::client<websocketpp::config::asio_tls_client> client;
}

Fixing the problem just requires appending "boost::random" in package_info

Package and Environment Details

  • Package Name/Version: websocketpp/0.8.2
  • Operating System+version: Windows 10
  • Compiler+version: msvc 19.3
  • Docker image:
  • Conan version: conan 1.65.0
  • Python version: Python 3.10.10

Conan profile

Steps to reproduce

Logs

Click to expand log
error LNK2019: unresolved external symbol "public: __cdecl boost::random::random_device::random_device(void)" (??0random_device@random@boost@@QEAA@XZ) referenced in function "public: __cdecl websocketpp::random::random_device::int_generator<unsigned int,class websocketpp::concurrency::basic>::int_generator<unsigned int,class websocketpp::concurrency::basic>(void)" (??0?$int_generator@IVbasic@concurrency@websocketpp@@@random_device@random@websocketpp@@QEAA@XZ)
error LNK2019: unresolved external symbol "public: __cdecl boost::random::random_device::~random_device(void)" (??1random_device@random@boost@@QEAA@XZ) referenced in function "int `public: __cdecl websocketpp::random::random_device::int_generator<unsigned int,class websocketpp::concurrency::basic>::int_generator<unsigned int,class websocketpp::concurrency::basic>(void)'::`1'::dtor$0" (?dtor$0@?0???0?$int_generator@IVbasic@concurrency@websocketpp@@@random_device@random@websocketpp@@QEAA@XZ@4HA)

@ibrawada ibrawada added the bug Something isn't working label Jan 22, 2025
@ibrawada ibrawada linked a pull request Jan 22, 2025 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant