Boost C++ Libraries: Ticket #3379: Problem building Boost 1.40 for Mac OS 10.3.9 https://svn.boost.org/trac10/ticket/3379 <p> When trying to build Boost (regex) using: </p> <p> ./bootstrap.sh -with-libraries=regex ./bjam </p> <p> I get the following (first of many) error: </p> <p> cc1plus: warning: `dwarf-2': unknown or unsupported -g option boost/regex/v4/cpp_regex_traits.hpp: In member function `bool </p> <blockquote> <p> boost::re_detail::cpp_regex_traits_implementation&lt;charT&gt;::isctype(charT, typename boost::cpp_regex_traits&lt;charT&gt;::char_class_type) const [with charT </p> </blockquote> <h1 class="section" id="char:">char]':</h1> <p> boost/regex/v4/cpp_regex_traits.hpp:959: instantiated from `bool boost::cpp_regex_traits&lt;charT&gt;::isctype(charT, unsigned int) const [with charT = char]' boost/regex/v4/perl_matcher_common.hpp:802: instantiated from `bool boost::re_detail::perl_matcher&lt;<a class="missing wiki">BidiIterator</a>, Allocator, traits&gt;::find_restart_word() [with <a class="missing wiki">BidiIterator</a> = const char*, Allocator = std::allocator&lt;boost::sub_match&lt;const char*&gt; &gt;, traits = boost::regex_traits&lt;char, boost::cpp_regex_traits&lt;char&gt; &gt;]' boost/regex/v4/perl_matcher_common.hpp:246: instantiated from `bool boost::re_detail::perl_matcher&lt;<a class="missing wiki">BidiIterator</a>, Allocator, traits&gt;::find_imp() [with <a class="missing wiki">BidiIterator</a> = const char*, Allocator = std::allocator&lt;boost::sub_match&lt;const char*&gt; &gt;, traits = boost::regex_traits&lt;char, boost::cpp_regex_traits&lt;char&gt; &gt;]' boost/regex/v4/perl_matcher_common.hpp:230: instantiated from `bool boost::re_detail::perl_matcher&lt;<a class="missing wiki">BidiIterator</a>, Allocator, traits&gt;::find() [with <a class="missing wiki">BidiIterator</a> = const char*, Allocator = std::allocator&lt;boost::sub_match&lt;const char*&gt; &gt;, traits = boost::regex_traits&lt;char, boost::cpp_regex_traits&lt;char&gt; &gt;]' boost/regex/v4/regex_grep.hpp:55: instantiated from `unsigned int boost::regex_grep(Predicate, <a class="missing wiki">BidiIterator</a>, <a class="missing wiki">BidiIterator</a>, const boost::basic_regex&lt;charT, traits&gt;&amp;, boost::regex_constants::_match_flags) [with Predicate = boost::re_detail::pred1, <a class="missing wiki">BidiIterator</a> = const char*, charT = char, traits = boost::regex_traits&lt;char, boost::cpp_regex_traits&lt;char&gt; &gt;]' libs/regex/src/cregex.cpp:247: instantiated from here boost/regex/v4/cpp_regex_traits.hpp:827: error: `char_class_vertical' </p> <blockquote> <p> undeclared in namespace `boost::re_detail' </p> </blockquote> <p> boost/regex/v4/cpp_regex_traits.hpp:827: error: `char_class_horizontal' </p> <blockquote> <p> undeclared in namespace `boost::re_detail' </p> </blockquote> <p> Any ideas? </p> <p> Thanks, </p> <p> Jakob </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3379 Trac 1.4.3 John Maddock Tue, 01 Sep 2009 11:28:56 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3379#comment:1 https://svn.boost.org/trac10/ticket/3379#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> <p> This is a known issue with older gcc versions, it's fixed by this patch: <a class="ext-link" href="https://svn.boost.org/trac/boost/changeset/55837/trunk/boost/regex/v4"><span class="icon">​</span>https://svn.boost.org/trac/boost/changeset/55837/trunk/boost/regex/v4</a> </p> <p> HTH, John. </p> Ticket