Boost logo

Boost-Build :

Subject: [Boost-build] [Fwd: howto feed inputs to examples? (was Re: Spirit2x in Spirit SVN]
From: Larry Evans (cppljevans_at_[hidden])
Date: 2008-12-01 15:00:32

The attached has already been sent to
spirit-devel_at_[hidden]; however, it's probably more
appropriate to this list.

Could someone on this list provide pointers on how to modify the Jamfile
to actually run the examples (in particular, the mini_xml1.cpp) with the
input file specified?

attached mail follows:

On 10/17/08 09:20, Joel de Guzman wrote:
> Hi,
> To those interested, FYI, I have the Spirit2x code in the
> Spirit SourceForge SVN at:


there's subdirectories with, apparently, inputs files to some examples:


For example, mini_xml1.cpp contains:
-{--cut here--
int main(int argc, char **argv)
     char const* filename;
     if (argc > 1)
         filename = argv[1];
         std::cerr << "Error: No input file provided." << std::endl;
         return 1;

     std::ifstream in(filename, std::ios_base::in);

     if (!in)
         std::cerr << "Error: Could not open input file: "
             << filename << std::endl;
         return 1;
-{--cut here--

However, the Jamfile doesn't show how to feed those input files
to the programs. Is there some way, other than manually, to
do that?

This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at