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

crow using boost::asio error : "boost::asio has no member io_service" #970

Closed
AIdancer opened this issue Jan 5, 2025 · 3 comments · Fixed by #971
Closed

crow using boost::asio error : "boost::asio has no member io_service" #970

AIdancer opened this issue Jan 5, 2025 · 3 comments · Fixed by #971
Labels
feature Code based project improvement

Comments

@AIdancer
Copy link

AIdancer commented Jan 5, 2025

I use boost_1_87_0 to compile crow web service on windows 10, but failed.
The error is "namespace boost::asio has no member io_service".
I have check this error and found this: now boost::asio::io_service has been replaced by boost:asio::io_context.
Hope maintainer update code to support the latest boost::asio version, thank you ^_^

@gittiver gittiver added the feature Code based project improvement label Jan 5, 2025
@gittiver
Copy link
Member

gittiver commented Jan 5, 2025

We use standalone asio library, not boost this is an existent, but not supported build option.
Please provide a Pull request if you want to have that supported.

@bugdea1er
Copy link
Contributor

@gittiver asio::io_service is deprecated in standalone asio, so it should not be used in any configuration

The next release of asio may remove it too

I would suggest defining ASIO_NO_DEPRECATED at least in CI to prevent using the deprecated API

@gil-air-may
Copy link

Thank you @bugdea1er, I'm having the same problem.

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

Successfully merging a pull request may close this issue.

4 participants