Gabriel Devillers
Gabriel Devillers

Reputation: 4002

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 ?

Upvotes: 0

Views: 108

Answers (1)

Gabriel Devillers
Gabriel Devillers

Reputation: 4002

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

Upvotes: 0

Related Questions