Boost C++ Libraries

PrevUpHomeNext

Hello

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

Files:

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

exe hello : hello.cpp ;

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.


PrevUpHomeNext