diff --git a/v2/doc/src/advanced.xml b/v2/doc/src/advanced.xml index 007b2abc8..bfb62b475 100644 --- a/v2/doc/src/advanced.xml +++ b/v2/doc/src/advanced.xml @@ -744,9 +744,11 @@ exe hello : hello.cpp some_library.lib /some_project//library : <threading>multi ; - This will create an executable file from the sources -- which can - include C and C++ files, object files and libraries. Boost.Build will - automatically try to convert targets of other types. + This will create an executable file from the sources -- in this case, + one C++ file, one library file present in the same directory, and + another library which is created by Boost.Build. Generally, sources + can include C and C++ files, object files and libraries. Boost.Build + will automatically try to convert targets of other types. @@ -787,12 +789,15 @@ lib helpers : helpers.cpp : <include>boost : : <include>. ; The syntax for these case is given below: -lib z : : <name>z ; +lib z : : <name>z <search>/home/ghost ; lib compress : : <file>/opt/libs/compress.a ; The name property specifies the name which should be passed to the option, and the file - property specifies the file location. + property specifies the file location. The search feature + specifies paths where the library should be searched. That feature can + be specified several time, or can be omitted -- in which case only + default compiler paths will be searched. @@ -851,7 +856,7 @@ lib helpers : helpers.cpp : : : <include>. ; you'd need to use the following: lib b : a.cpp ; -lib a : a.cpp : <use>b : : >library>b ; +lib a : a.cpp : <use>b : : <library>b ; This specifies that a uses b, and causes all executables which link to a also link to