Skip to content

Latest commit

 

History

History

hello

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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[role=include]

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

jamroot.jam
link:jamroot.jam[role=include]

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.