Name Last Update
..
hello.cpp Loading commit data...
jamroot.jam Loading commit data...
readme.adoc Loading commit data...

readme.adoc

Hello

This example shows a very basic Boost Build project set up so it compiles a single executable from a single source file:

hello.cpp
link:../../example/hello/hello.cpp[]

Our jamroot.jam is minimal and only specifies one exe target for the program:

jamroot.jam
link:jamroot.jam[]

Building the example yields:

> cd /example/hello
> b2
...found 8 targets...
...updating 4 targets...
common.mkdir bin/clang-darwin-4.2.1
common.mkdir bin/clang-darwin-4.2.1/debug
clang-darwin.compile.c++ bin/clang-darwin-4.2.1/debug/hello.o
clang-darwin.link bin/clang-darwin-4.2.1/debug/hello
...updated 4 targets...
> bin/clang-darwin-4.2.1/debug/hello
Hello!
Note
The actual paths in the bin sub-directory will depend on your toolset.