bjamboost-buildb2

Rule "new" unknown in boost build/b2/bjam


I want to use the rule new as shown in some of the documentation examples, but I get the error:

ERROR: rule "new" unknown in module "Jamfile<path/to/my/module>"

What module should I import to access this rule ?


Solution

  • You need to import the class module.

    Because class is also a language keyword you need to use quotes:

    import "class" ;
    

    then you can use class.new in your code