newbie...please assist

Can some one point in me in the right direction: Environment: RHEL 3.2.3-47 Compiler: GCC 3.2.3 BOOST Library: xpressive Issue: Trying the example found in the xpressive.pdf on page 31and I keep getting the following message. Can someone help? Thanks, Paul ***************************************************************** /home/pflore/boost/boost_1_34_1/boost/xpressive/basic_regex.hpp: In function `int main()': /home/pflore/boost/boost_1_34_1/boost/xpressive/basic_regex.hpp:167: ` boost::xpressive::basic_regex<BidiIter>::basic_regex(boost::iterator_value<Iterator>::type*) [with BidiIter = __gnu_cxx::__normal_iterator<const char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >]' is private NParse.cpp:104: within this context --------------------------------- Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.

Hey, Copy-Paste the sample, you will get help faster. Steven "Paul Flores" <flores_p_a@yahoo.com> wrote in message news:919000.92034.qm@web39202.mail.mud.yahoo.com...
Can some one point in me in the right direction: Environment: RHEL 3.2.3-47 Compiler: GCC 3.2.3 BOOST Library: xpressive Issue: Trying the example found in the xpressive.pdf on page 31and I keep getting the following message. Can someone help?
Thanks,
Paul *****************************************************************
/home/pflore/boost/boost_1_34_1/boost/xpressive/basic_regex.hpp: In function `int main()': /home/pflore/boost/boost_1_34_1/boost/xpressive/basic_regex.hpp:167: `
boost::xpressive::basic_regex<BidiIter>::basic_regex(boost::iterator_value<Iterator>::type*) [with BidiIter = __gnu_cxx::__normal_iterator<const char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >
]' is private NParse.cpp:104: within this context
--------------------------------- Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Thanks for your feedback! Solved one portion of the problem, I needed to build Boost "correctly". The next error I am struggling with refering to the sregex::compile statement is : /home/pflore/boost/boost_1_34_1/boost/xpressive/traits/cpp_regex_traits.hpp:241: warning: comparison is always false due to limited range of data type Here is the sample program: #include <iostream> #include <boost/xpressive/xpressive.hpp> using namespace boost::xpressive; int main() { std::string hello( "hello world!" ); sregex rex = sregex::compile( "(\\w+) (\\w+)!" ); smatch what; if( regex_match( hello, what, rex ) ) { std::cout << what[0] << '\n'; // whole match std::cout << what[1] << '\n'; // first capture std::cout << what[2] << '\n'; // second capture } return 0; } Steven Burns <royalstream@hotmail.com> wrote: Hey, Copy-Paste the sample, you will get help faster. Steven "Paul Flores" wrote in message news:919000.92034.qm@web39202.mail.mud.yahoo.com...
Can some one point in me in the right direction: Environment: RHEL 3.2.3-47 Compiler: GCC 3.2.3 BOOST Library: xpressive Issue: Trying the example found in the xpressive.pdf on page 31and I keep getting the following message. Can someone help?
Thanks,
Paul *****************************************************************
/home/pflore/boost/boost_1_34_1/boost/xpressive/basic_regex.hpp: In function `int main()': /home/pflore/boost/boost_1_34_1/boost/xpressive/basic_regex.hpp:167: `
boost::xpressive::basic_regex::basic_regex(boost::iterator_value::type*) [with BidiIter = __gnu_cxx::__normal_iterator> std::basic_string, std::allocator >
]' is private NParse.cpp:104: within this context
--------------------------------- Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost --------------------------------- Got a little couch potato? Check out fun summer activities for kids.

The next error I am struggling with refering to the sregex::compile statement is :
/home/pflore/boost/boost_1_34_1/boost/xpressive/traits/cpp_regex_traits.hpp:241: warning: comparison is always false due to limited range of data type
This warning is caused by a known bug in gcc 3.2.3. See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23587 for more info. Regards, Dave Jenkins

"Dave Jenkins" <david@jenkins.net> wrote in message news:fc6fm6$1ut$1@sea.gmane.org...
The next error I am struggling with refering to the sregex::compile statement is :
/home/pflore/boost/boost_1_34_1/boost/xpressive/traits/cpp_regex_traits.hpp:241: warning: comparison is always false due to limited range of data type
This warning is caused by a known bug in gcc 3.2.3. See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23587 for more info. Regards, Dave Jenkins
Oops, I got it backwards. That gcc bug is about a MISSING warning message. Sorry for the noise. Regards, Dave Jenkins

Thanks for the assitance! Now on to "tilt" with an administrator to update gcc! Dave Jenkins <david@jenkins.net> wrote: > The next error I am struggling with refering to the sregex::compile
statement is :
/home/pflore/boost/boost_1_34_1/boost/xpressive/traits/cpp_regex_traits.hpp:241: warning: comparison is always false due to limited range of data type
This warning is caused by a known bug in gcc 3.2.3. See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23587 for more info. Regards, Dave Jenkins _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost --------------------------------- Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
participants (3)
-
Dave Jenkins
-
Paul Flores
-
Steven Burns