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

Trouble compliling in Ubuntu 22.04.1 LTS using gcc with Makefiles #43

Open
zinoferife opened this issue Nov 23, 2022 · 1 comment
Open

Comments

@zinoferife
Copy link

I am trying to complie the examples on the library and i am getting this error

error: incomplete type ‘boost::asio::execution::is_executor<_0xdead4ead::http::base::strand_stream>’ used in nested name specifier
476 | struct is_valid_target_executor :
| ^~~~~~~~~~~~~~~~~~~~~~~~
I happens then there is a reference to router or listener in the file. I have tried to solve it but failed. Thank you.

@zinoferife
Copy link
Author

I think this problem comes from asio not beastHttp. The compiler thinks there are two is_executor definitions, one under the asio::execution namespace, and another under the asio::detail namespace. But in reality there is only one which is under the detail namespace.

The solution; add boost::asio::detail, to every is_executor. This is in only flies that beasthttp touches so it's not a lot of flies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant