Ask coding questions

← Back to all posts
Repls support of Boost asio
Kingoftheof1

Repl does not allow the usage of <boost.asio> in c++ see documentation: https://www.boost.org/doc/libs/1_74_0/doc/html/boost_asio.html. Is there a way around this? If so what?

Voters
RDutch
Kingoftheof1
Comments
hotnewtop
programmeruser

I'm pretty sure repl.it has the boost libraries installed. Can you send me the link of the repl where you tried this?

Kingoftheof1

@programmeruser yes they do support it. Though I keep getting a large amount of errors when attempting to compile:
//Try this program
#include <iostream>
#include <boost/asio.hpp>

int main() {
std::cout << "Hello World!\n";
}

RDutch

@programmeruser Hey! I have the same question. I get this message: error: no type named 'io_context' in namespace 'boost::asio'; did you mean 'sigcontext'?
Program code:

Repl with error here