tokenizer compilation problem with gcc 3.0.3 and stlport
Hi all,
I have been having trouble getting the tokenizer examples to compile
using gcc 3.0.3 and stlport. I am using the example code from
http://www.boost.org/libs/tokenizer/escaped_list_separator.htm, with
the following compiler output:
test.cpp: In instantiation of `::boost::::boost::iterator_ada
ptor<::boost::detail::::boost::detail::token_iterator_base ,::_STL::::_STL::basic_string If anyone has encountered and solved this problem before, I would
greatly appreciate knowing what I'm doing wrong.
Thanks,
Chris.
P.S. I get similar results with all the tokenizer examples.
I don't have gcc 3.0.3, but I tried reproducing the problem with 3.0.2,
but that compiled with no problem (I assume it is the simple_example_2.cpp
file that you are having trouble with).
BTW, from the error msg below, it looks like the problem has to do with
the iterator_category type of std::basic_string, and its interaction with
the iterator_adaptor on which the token_iterator is based.
On Wed, 6 Feb 2002, fintaeph wrote:
cpoiri> Hi all,
cpoiri>
cpoiri> I have been having trouble getting the tokenizer examples to compile
cpoiri> using gcc 3.0.3 and stlport. I am using the example code from
cpoiri> http://www.boost.org/libs/tokenizer/escaped_list_separator.htm, with
cpoiri> the following compiler output:
cpoiri>
cpoiri> test.cpp: In instantiation of `::boost::::boost::iterator_ada
cpoiri> ptor<::boost::detail::::boost::detail::token_iterator_base<co
cpoiri> nst char *>,::boost::detail::::boost::detail::tokenizer_polic
cpoiri> y<::_STL::::_STL::basic_string
I don't have gcc 3.0.3, but I tried reproducing the problem with 3.0.2, but that compiled with no problem (I assume it is the simple_example_2.cpp file that you are having trouble with).
I just tried all the examples with gcc3.0.3 on Linux, boost_1_26_0 -- no problems. Maybe it is an interaction with stlport.... Jeff
Hi all,
I have been having trouble getting the tokenizer examples to compile using gcc 3.0.3 and stlport. I am using the example code from http://www.boost.org/libs/tokenizer/escaped_list_separator.htm, with
Thanks to those who took the time to have a look at this problem for me. I think I made some mistakes installing gcc 3 over gcc 2.95, and corrupted the headers. I set up a clean linux install with gcc 2.95 and everything worked perfectly. Thanks again, Chris.
participants (3)
-
fintaeph
-
Jeff Garland
-
Jeremy Siek