Boost logo

Boost :

Subject: [boost] [1.38.0] regexp compile error on Solaris 10 Sun Studio 11
From: Paulo Moura Guedes (pmouraguedes_at_[hidden])
Date: 2009-02-10 11:15:29


Hi,

I had successfully compiled regexp library with boost_1_34_1 but with version
boost_1_38_0 I'm getting this error:

dmake -f sunpro.mak

CC -c -O2 -I../../../ -o sunpro/libboost_regex/cregex.o ../src/cregex.cpp
"../../..//boost/regex/v4/basic_regex_parser.hpp", line 379: Error: Could not
find a match for std::distance<std::ForwardIterator, std::Distance>(const
char*, const char*) needed in boost::re_detail::basic_regex_parser<char,
boost::regex_traits<char, boost::cpp_regex_traits<char>>>::parse_open_paren().
"../../..//boost/regex/v4/basic_regex_parser.hpp", line 255: Where: While
instantiating "boost::re_detail::basic_regex_parser<char,
boost::regex_traits<char,
boost::cpp_regex_traits<char>>>::parse_open_paren()".
"../../..//boost/regex/v4/basic_regex_parser.hpp", line 255: Where:
Instantiated from boost::re_detail::basic_regex_parser<char,
boost::regex_traits<char, boost::cpp_regex_traits<char>>>::parse_extended().
"../../..//boost/regex/v4/basic_regex_parser.hpp", line 126: Where:
Instantiated from boost::re_detail::basic_regex_parser<char,
boost::regex_traits<char, boost::cpp_regex_traits<char>>>::parse(const char*,
const char*, unsigned).
"../../..//boost/regex/v4/basic_regex.hpp", line 106: Where: Instantiated
from boost::basic_regex<char, boost::regex_traits<char,
boost::cpp_regex_traits<char>>>::do_assign(const char*, const char*,
unsigned).
"../../..//boost/regex/v4/basic_regex.hpp", line 273: Where: Instantiated
from non-template code.
"../../..//boost/regex/v4/basic_regex_parser.hpp", line 379: Error: Formal
argument x of type const std::pair<unsigned, unsigned>& in call to
std::vector<std::pair<unsigned, unsigned> >::push_back(const
std::pair<unsigned, unsigned>&) is being passed int.
"../../..//boost/regex/v4/basic_regex_parser.hpp", line 255: Where: While
instantiating "boost::re_detail::basic_regex_parser<char,
boost::regex_traits<char,
boost::cpp_regex_traits<char>>>::parse_open_paren()".
"../../..//boost/regex/v4/basic_regex_parser.hpp", line 255: Where:
Instantiated from boost::re_detail::basic_regex_parser<char,
boost::regex_traits<char, boost::cpp_regex_traits<char>>>::parse_extended().
"../../..//boost/regex/v4/basic_regex_parser.hpp", line 126: Where:
Instantiated from boost::re_detail::basic_regex_parser<char,
boost::regex_traits<char, boost::cpp_regex_traits<char>>>::parse(const char*,
const char*, unsigned).
"../../..//boost/regex/v4/basic_regex.hpp", line 106: Where: Instantiated
from boost::basic_regex<char, boost::regex_traits<char,
boost::cpp_regex_traits<char>>>::do_assign(const char*, const char*,
unsigned).
"../../..//boost/regex/v4/basic_regex.hpp", line 273: Where: Instantiated
from non-template code.
"../../..//boost/regex/v4/basic_regex_parser.hpp", line 428: Error: Could not
find a match for std::distance<std::ForwardIterator, std::Distance>(const
char*, const char*) needed in boost::re_detail::basic_regex_parser<char,
boost::regex_traits<char, boost::cpp_regex_traits<char>>>::parse_open_paren().
"../../..//boost/regex/v4/basic_regex_parser.hpp", line 255: Where: While
instantiating "boost::re_detail::basic_regex_parser<char,
boost::regex_traits<char,
boost::cpp_regex_traits<char>>>::parse_open_paren()".
"../../..//boost/regex/v4/basic_regex_parser.hpp", line 255: Where:
Instantiated from boost::re_detail::basic_regex_parser<char,
boost::regex_traits<char, boost::cpp_regex_traits<char>>>::parse_extended().
"../../..//boost/regex/v4/basic_regex_parser.hpp", line 126: Where:
Instantiated from boost::re_detail::basic_regex_parser<char,
boost::regex_traits<char, boost::cpp_regex_traits<char>>>::parse(const char*,
const char*, unsigned).
"../../..//boost/regex/v4/basic_regex.hpp", line 106: Where: Instantiated
from boost::basic_regex<char, boost::regex_traits<char,
boost::cpp_regex_traits<char>>>::do_assign(const char*, const char*,
unsigned).
"../../..//boost/regex/v4/basic_regex.hpp", line 273: Where: Instantiated
from non-template code.
3 Error(s) detected.
*** Error code 3
dmake: Fatal error: Command failed for target `sunpro/libboost_regex/cregex.o'

Any help appreciated.

Regards,
Paulo


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