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

92 Views Asked by At

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 ?

1

There are 1 best solutions below

0
Gabriel Devillers On BEST ANSWER

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