Closed liaoya closed 5 months ago
The original issue was closed while the issue was being transferred.
@mclow Can you re-open this ticket. I raise duplicate ticket on https://github.com/boostorg/boost when I found my ticket disappear. I hope this problem can be solved for next boost release.
You need to specify that the C++ standard is 20 for b2
, since your compiler won't default to that.
./b2 link=static threading=multi cxxstd=20; ls stage/lib
@klemens-morgenstern Thank you for the information. I had to build cobalt
with cmake before.
I download
boost_1_85_0.tar.bz2
and built it on Ubuntu22.04
with gcc11.4.0
. I run./b2 link=static threading=multi; ls stage/lib
. The following is the outputI cannot find
libboost_cobalt.a
understage/lib
. I have to entercobalt
directory and runcmake -H. -Bbuild; sudo cmake --build build --target install/strip
do the build manually. This time I findlibboost_cobalt.a
under/usr/local/lib
.Then I can run
g++ --std=c++20 delay.cpp -lboost_cobalt
to build the demo code.