Boost logo

Boost-Build :

From: Craig Rodrigues (rodrigc_at_[hidden])
Date: 2005-07-28 22:34:14


Hi,

I was reading the Libraries section of the manual at:

http://www.boost.org/regression-logs/cs-win32_metacomm/doc/html/bbv2/advanced/builtins/targets.html#id785452

I tried this example under Linux:

lib dl : : <name>dl ; # works
#lib dl ; # does not work

bin prog : somefile.cpp dl ;

The example works with the first line uncommented, i.e.
when it compiles prog, it passes -ldl to the linker. If I comment out
the first line, and uncomment the second line, I get this error message:

/opt/home/rodrigc/boost/tools/build/v2/build/generators.jam:826: in try-one-generator-really
*** argument error
* rule object(gcc-linking-generator)@2.run ( project name ? : property-set : sources + )
* called with: ( object(project-target)@3 edit : object(property-set)@3 : )
* missing argument sources
/opt/home/rodrigc/boost/tools/build/v2/tools/unix.jam:40:see definition of rule 'run' being called
/opt/home/rodrigc/boost/tools/build/v2/build/generators.jam:873: in try-one-generator

Is the manual wrong, or is something wrong in BBv2?
Thanks.

-- 
Craig Rodrigues 
rodrigc_at_[hidden]
 

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk