Boost logo

Boost-Build :

From: Patrick Tan (pxt_at_[hidden])
Date: 2005-12-05 19:11:51


Vladimir Prus wrote:
Hi Patrick,

  
I'm trying to use bjam version  3.1.11 with boost build v1 to build my
c++ program
    
....
  
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
/home/pattan/repo/trunk/tools/build/v1/boost-base.jam:2070:see
    
........
  
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.
    

The problem is that the documentation URL is for Boost.Build V2, while you use 
Boost.Build V1, which has different syntax. Either you need to use V1 syntax, 
or use V2 by pointing your BOOST_BUILD_PATH environment variable 
to .../tools/build/v2, not .../tools/build/v1

- Volodya
_______________________________________________
Boost-build mailing list
Boost-build@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-build
  
Hi Vladimir

Thanks for your response. I'm running bjam on linux and I'm having some trouble with using v2 for some reason. When I try to run a simple Jamfile using v2 I get the following error messages:

[pattan@persian common]$ bjam --v2
/home/pattan/repo/trunk/tools/build/v2/build/property.jam:264: in validate1 from module property
error: Invalid property '<flex.prefix>bgl_undir_': unknown feature 'flex.prefix'.
/home/pattan/repo/trunk/tools/build/v2/build/property.jam:272: in validate from module property
/home/pattan/repo/trunk/tools/build/v2/build/property.jam:410: in property.translate-paths from module property
/home/pattan/repo/trunk/tools/build/v2/build/targets.jam:1202: in targets.main-target-requirements from module targets
/home/pattan/repo/trunk/tools/build/v2/build/targets.jam:1275: in targets.create-typed-target from module targets
/home/pattan/repo/trunk/tools/build/v2/build/type.jam:292: in obj from module type
../libs/graph/build/Jamfile.v2:16: in modules.load from module Jamfile</home/pattan/repo/trunk/libs/graph/build>
/home/pattan/repo/trunk/tools/build/v2/build/project.jam:255: in load-jamfile from module project
/home/pattan/repo/trunk/tools/build/v2/build/project.jam:67: in load from module project
/home/pattan/repo/trunk/tools/build/v2/build/project.jam:71: in load from module project
/home/pattan/repo/trunk/tools/build/v2/build/project.jam:311: in initialize from module project
/home/pattan/repo/trunk/tools/build/v2/build/project.jam:246: in load-jamfile from module project
/home/pattan/repo/trunk/tools/build/v2/build/project.jam:67: in project.load from module project
/home/pattan/repo/trunk/tools/build/v2/build-system.jam:75: in load from module build-system
/home/pattan/repo/trunk/tools/build/v2/kernel/modules.jam:259: in import from module modules
/home/pattan/repo/trunk/tools/build/v2/kernel/bootstrap.jam:120: in boost-build from module
/home/pattan/repo/trunk/boost-build.jam:12: in module scope from module

Would you know why I get these error messages?

The other question I want to ask is how do you link in pre built targets with boost build v1. I looked at the online documentation for boost build v1 and I couldn't find any information about it.


Regards,

Patrick

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