boostorg / cobalt

Coroutines for C++20 & asio
https://www.boost.org/doc/libs/master/libs/cobalt/doc/html/index.html
191 stars 22 forks source link

Boost 1.84.0 cobalt fails to build with gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 #163

Closed yangdianxp closed 3 months ago

yangdianxp commented 3 months ago

My system is Ubuntu 22.04.3 LTS My compiler is gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

I executed the following instructions to compile boost

tar -xvf boost_1_84_0.tar.bz2
cd boost_1_84_0
./bootstrap.sh --prefix=/usr/local
./
b2

describe.txt

Lyulf commented 3 months ago

I currently don't have access to a gcc compiler on hand to test below flags but try this:

./bootstrap.sh --prefix=/usr/local --with-libraries=cobalt,system
./b2 cxxstd=20
yangdianxp commented 3 months ago

Thank you, the cobalt library has been generated.