• Home
Name Date Size #Lines LOC

..--

hello.cppD12-May-2024345 196

jamroot.jamD12-May-202424 21

readme.adocD12-May-20241 KiB4738

readme.adoc

1////
2Copyright 2008 Jurko Gospodnetic
3Copyright 2017 Rene Rivera
4Distributed under the Boost Software License, Version 1.0.
5(See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
6////
7
8= Hello
9
10This example shows a very basic Boost Build project set up so it compiles a
11single executable from a single source file:
12
13.`hello.cpp`
14[source,cpp]
15----
16include::../../example/hello/hello.cpp[tag=source]
17----
18
19Our `jamroot.jam` is minimal and only specifies one `exe` target for the
20program:
21
22.`jamroot.jam`
23[source,jam]
24----
25include::jamroot.jam[]
26----
27
28Building the example yields:
29
30[source,bash]
31----
32> cd /example/hello
33> b2
34...found 8 targets...
35...updating 4 targets...
36common.mkdir bin/clang-darwin-4.2.1
37common.mkdir bin/clang-darwin-4.2.1/debug
38clang-darwin.compile.c++ bin/clang-darwin-4.2.1/debug/hello.o
39clang-darwin.link bin/clang-darwin-4.2.1/debug/hello
40...updated 4 targets...
41> bin/clang-darwin-4.2.1/debug/hello
42Hello!
43----
44
45NOTE: The actual paths in the `bin` sub-directory will depend on your
46toolset.
47