Boost logo

Boost-Build :

Subject: [Boost-build] Can't get output from the print rule?
From: John Maddock (boost.regex_at_[hidden])
Date: 2010-07-10 07:17:13


Folks,

I'm trying to use the print.jam file to generate a cpp file, so I have:

   print.output t.cpp ;
   print.text "hello" ;

In my custom rule, but no file t.cpp is ever created. If I leave out the
print.output part then I do see output to console though.

Also if I change the .text rule to:

print.text "hello" : true ;

Then I get:

m:/data/boost/trunk/tools/build/v2/util\print.jam:432: in check-for-update
*** argument error
* rule scanner.install ( scanner : target vtarget )
* called with: ( object(print-scanner)@638 : none )
* missing argument vtarget
m:/data/boost/trunk/tools/build/v2/build\scanner.jam:121:see definition of
rule
'install' being called
m:/data/boost/trunk/tools/build/v2/util\print.jam:350: in print.text
Jamfile.jam:31: in try_compile
Jamfile.jam:48: in modules.load
m:/data/boost/trunk/tools/build/v2/build\project.jam:310: in load-jamfile
m:/data/boost/trunk/tools/build/v2/build\project.jam:62: in load
m:/data/boost/trunk/tools/build/v2/build\project.jam:168: in project.find
m:/data/boost/trunk/tools/build/v2\build-system.jam:569: in load
m:\data\boost\trunk\tools\build\v2/kernel\modules.jam:283: in import
m:\data\boost\trunk\tools\build\v2\kernel\bootstrap.jam:142: in boost-build
M:\data\boost\sandbox\boost-build.jam:62: in module scope

Any ideas?

Thanks, John.

PS we really should have some *simple and documented* rules for creating and
deleting files...


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