Boost logo

Boost-Build :

Subject: Re: [Boost-build] vacpp and templates
From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-10-16 11:58:12


On Wednesday 15 October 2008 14:56:32 Xavier Pegenaute wrote:
> Hi,
>
> I am still having the same problem. I made a little version of the code
> I want compile with vacpp (find it attached). It compiles correctly with
> gcc, but with vacpp the compiler shows:
>
>
> ------------------
> bin/vacpp/debug/Test.o(.text+0x8d40): In function
> `boost::spirit::impl::grammar_helper<boost::spirit::grammar<TestGrammar<Test>, boost::spirit::parser_context<boost::spirit::nil_t> >, TestGrammar<Test>, boost::spirit::scanner<char const*, boost::spirit::scanner_policies<boost::spirit::iteration_policy, boost::spirit::match_policy, boost::spirit::action_policy> > >::define(boost::spirit::grammar<TestGrammar<Test>, boost::spirit::parser_context<boost::spirit::nil_t> > const*)':
> /gpfs/apps/BOOST/boost_1_33_1-64/boost/spirit/core/non_terminal/impl/grammar.ipp:175: undefined reference to `TestGrammar<Test>::definition<boost::spirit::scanner<char const*, boost::spirit::scanner_policies<boost::spirit::iteration_policy, boost::spirit::match_policy, boost::spirit::action_policy> > >::definition(TestGrammar<Test> const&)'
>
> xlC -g -qfullpath -o "bin/vacpp/debug/test"
> "bin/vacpp/debug/Test.o" "bin/vacpp/debug/main.o" -lrt
> -------------------
>
>
> Any hint to solve it?

I think that to get help with compiling boost.spirit on vacpp, you will
have better luck on the boost-users_at_[hidden] mailing list

- 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