From: Patrick Tan (pxt_at_[hidden])
Date: 2005-12-04 22:21:37
I'm trying to use bjam version 3.1.11 with boost build v1 to build my
c++ program and I'm having some trouble linking in pre built libraries.
Below is Jamfile that I've written.
: <file>libfirst.a <variant>debug
lib second : a.cc b.cc etc.cc <lib>first ;
When I run the above Jamfile it gives me the following error:
*** argument error
* rule lib ( target : sources + : requirements * : default-build * )
* called with: ( first : : <file>libfirst.a <variant>debug )
* missing argument sources
definition of rule 'lib' being called
/home/pattan/repo/trunk/tools/build/v1/bootstrap.jam:21: in boost-build
/home/pattan/repo/trunk/boost-build.jam:16: in module scope
According to documentation on the boost website in the Boost Jam Pre
Built targets section
http://www.boost.org/doc/html/bbv2/tutorial/prebuilt.html it gives an
example just like my Jamfile. So I don't understand why my Jamfile gives
an error unless the documentation on the website is incorrect and I need
to put something for the sources parameter.
If anyone can tell me what I'm doing wrong it would be greatly appreciated.
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