B2 Build Home:
On Haiku OS:
> g++ --version
> git clone --depth=1 https://github.com/bfgroup/b2
> cd b2 > ./bootstrap.sh
> ./b2 install --prefix=/boot/home/sand
/boot/home/sand/bin
to your system bin path.
Init project:
> mkdir my-project > cd my-project > kak hello-world.cpp > kak jamroot
hello-world.cpp :
#include <iostream> int main() { std::cout << "Hello, c++!" << std::endl; }
jamroot :
exe hello-world : hello-world.cpp : : <cxxstd>23 ;
Build project:
> b2 ...updated 6 targets...
Run program:
> ./bin/gcc-13/debug/cxxstd-23-iso/hell-world Hello, c++!
c++ std::exception:
std::cout.write(err.data(), err.size());
std::cout << std::endl;
caught:
=================================== # The c++ programming language. # # # # Join c++ # # Deck # ===================================