Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-04-08 04:49:23


themadman74 wrote:

> module my_module
> {
> rule salute ( x ) { ECHO $(x), world ; }
> rule greet ( ) { salute hello ; }
> greet ;
> }
> my_module.salute goodbye ;
>
> I find that it gives an error of:
> ------
> hello, world
> Jamfile:7: in module scope
> rule my_module.salute unknown in module

You need to execute

IMPORT my_module : salute : : my_module.salute ;

to bring the qualified name to global scope.

HTH,
Volodya

 


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