Boost logo

Boost-Build :

From: John Reid (j.reid_at_[hidden])
Date: 2007-05-11 11:02:06


Vladimir Prus wrote:
>>Can I do something like what is described in "How to change compilation
>>flags for one file?"
>>http://boost.sourceforge.net/boost-build2/doc/html/bbv2/faq/s08.html?
>
>
> either the above, but with 'cpp' as the target kind:
>
> cpp lexer : lexer.gl : : <antlr-name>SimpleLexer ;
> cpp lexer2 : lexer2.gl : : <antlr-name>SimpleLexer2 ;
>
> should work.
>
Thanks I had tried that but the extra colon caught me out. Now it works
but I get some warnings like:
warn: Unable to construct ./lexer

Is there any way to get rid of these?

Here is the Jamfile:

cpp lexer : lexer.gl : : <antlr-name>Simple <antlr-base>Base ;

lib antlr_lib
        :
                Base.gl
                lexer
        ;
        
lib test_lib
        : # sources
                test.cpp
        : # reqirements
                <implicit-dependency>antlr_lib
        ;


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