Boost logo

Boost :

From: Tim Hawes (Tim.Hawes_at_[hidden])
Date: 2002-05-01 13:11:30


On Wed, 2002-05-01 at 11:41, David Abrahams wrote:

> You shouldn't be writing "_STL" in your own code, but that's not a boost
> problem. STLPort #defines std so you don't have to do that. Actually, I
> can think of several ways in which this might be interfering with regex.

OK, I reread the STLport docs and realized that I did misunderstand
them. I need std:: and not _STL::

> > c++ -I/usr/local/gcc/gcc-3.0.4/include/stlport -I/usr/local/boost -c
> > test.cpp
> > In file included from /usr/local/boost/boost/regex.hpp:1541,
> > from test.cpp:1:
> > /usr/local/boost/boost/regex/detail/instances.hpp:116: template-id
> > `compile_map<>' for `void boost::reg_expression<wchar_t,
> > boost::regex_traits<wchar_t>, _STL::allocator<wchar_t>
> > >::compile_map(boost::re_detail::re_syntax_base*, unsigned int*,
> > unsigned
> > int*, unsigned int, boost::re_detail::re_syntax_base*) const' does
> > not match any template declaration
>
>
> Can't help you there; regex isn't my department. John?
> (looks like a possible missing "template" keyword after "::")
>

Changing _STL:: to std::, however, does not solve the problem above in
compiling against the regex libs from CVS. How do we get John's
attention so he can help?

> > Here is where it starts:
> > jam -sBOOST_ROOT=. -sTOOLS=gcc-stlport -d+2
> > g++ -c -Wall -ftemplate-depth-100 -DBOOST_REGEX_NO_LIB=1
> > -DBOOST_REGEX_STATIC_LINK=1 -D_STLP_DEBUG -g -O0 -fno-inline
> > -D_STLP_USE_DYNAMIC_LIB -I"libs/regex/build" -I"." -isystem
> > "/usr/local/gcc/gcc-3.0.4/include/stlport" -isystem
> > "c:/downloads/STLPort-0601/stlport" -o
>
>
> Hmm, are you sure you really have the latest CVS state? Where is
> "c:/downlaods/STLPort-0601/stlport" coming from? What have you got
> STLPORT_ROOT set to?
>

OK, the 'template with C linkage' errors is what I was getting w/ 1.27
boost. I was not getting these errors before, I added the gnu linker,
and now I get these errors whether or not I use the gnu linker.Sorry for
the confusion.

I would be quite content using the CVS version w/ Solaris linker.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk