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 ?
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