
I ran into a problem trying to use xpressive 0.9.8e. When I compile: #include <boost/xpressive/xpressive.hpp> int main () { return(0); } with "gcc -I /usr/local/boost_1_33_1 main.cpp" I get the following: <error_txt> In file included from /usr/local/boost_1_33_1/boost/xpressive/ detail/static/productions/alt_compilers.hpp:16, from /usr/local/boost_1_33_1/boost/xpressive/ detail/static/productions/productions.hpp:22, from /usr/local/boost_1_33_1/boost/xpressive/ regex_primitives.hpp:24, from /usr/local/boost_1_33_1/boost/xpressive/ xpressive_static.hpp:24, from /usr/local/boost_1_33_1/boost/xpressive/ xpressive.hpp:18, from main.cpp:1: /usr/local/boost_1_33_1/boost/xpressive/detail/utility/cons.hpp:289: error: redefinition of `struct boost::mpl:: next<boost::fusion::cons_iterator<Cons> >' /usr/local/boost_1_33_1/boost/spirit/fusion/iterator/detail/ cons_iterator/next_traits.hpp:76: error: previous definition of `struct boost::mpl::next<boost::fusion::cons_iterator<Cons> >' /usr/local/boost_1_33_1/boost/xpressive/detail/utility/cons.hpp:298: error: redefinition of `struct boost::mpl::deref<boost::fusion::cons_iterator<Cons> >' /usr/local/boost_1_33_1/boost/spirit/fusion/iterator/detail/ cons_iterator/value_traits.hpp:53: error: previous definition of `struct boost::mpl::deref<boost::fusion::cons_iterator<Cons> >' </error_txt> <build_environment> 2.6.9-1.667 #1 Tue Nov 2 14:41:25 EST 2004 i686 i686 i386 GNU/Linux gcc (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2) I put boost 1.33.1 into /usr/local/boost_1_33_1 and ran "sh configure". Then I built it with: /usr/local/boost_1_33_1]# mk -f Makefile install <generated_cmd result="looked ok"> ./tools/build/jam_src/bin.linuxx86/bjam -sPYTHON_ROOT=/usr -sPYTHON_VERSION=2.3 --prefix=/usr/local --exec-prefix=/usr/local --libdir=/usr/local/lib --includedir=/usr/local/include -sTOOLS=gcc install </generated_cmd> After it built, I unzipED xpressive.zip (0.9.8e) to the same directory. </build_environment> I'm clearly missing something here but can't for the life of me figure out how to 'fix' it. I'd appreciate any suggestions you can offer. Regards, Dick Bridges

Dick Bridges wrote:
<error_txt> /usr/local/boost_1_33_1/boost/xpressive/detail/utility/cons.hpp:298: error: redefinition of `struct boost::mpl::deref<boost::fusion::cons_iterator<Cons> >' /usr/local/boost_1_33_1/boost/spirit/fusion/iterator/detail/ cons_iterator/value_traits.hpp:53: error: previous definition of `struct boost::mpl::deref<boost::fusion::cons_iterator<Cons> >' </error_txt>
Ah, I didn't know that Fusion fix went in for 1.33.1! I'm checking for the wrong version number. Should be fixed now, thanks. -- Eric Niebler Boost Consulting www.boost-consulting.com
participants (2)
-
Dick Bridges
-
Eric Niebler