16 Nov
2023
16 Nov
'23
2:43 p.m.
Matthijs Möhlmann wrote:
As a general rule, you should prefer using the built-in b2 features for stdlib selection and C++ standard level; instead of
cxxflags="-I/usr/include/libcxxabi -std=c++20 -stdlib=libc++" linkflags="- stdlib=libc++"
try
stdlib=libc++ cxxstd=20
and, if needed,
include=/usr/include/libcxxabi
.
I tried your suggestion but still the same errors.
If I say --with-toolset=clang is the linker from llvm also selected or do I have to add the flag linker=... to that list?
There's no linker= feature, but I suppose you can try linkflags=-fuse-ld=lld-16 since I see that in LDFLAGS in your log.