[MacPorts] #35593: gcc47 @4.7.1, Revision 2 -- Undefined symbols from standard library

MacPorts noreply at macports.org
Wed Aug 8 09:49:36 PDT 2012


#35593: gcc47 @4.7.1, Revision 2 -- Undefined symbols from standard library
---------------------------------+------------------------------------------
 Reporter:  rob.patro@…          |       Owner:  macports-tickets@…                   
     Type:  defect               |      Status:  new                                  
 Priority:  High                 |   Milestone:                                       
Component:  ports                |     Version:  2.1.2                                
 Keywords:                       |        Port:                                       
---------------------------------+------------------------------------------
 The simple attached file reproduces the error.  It should be built with

 g++-mp-4.7 -std=c++11 test.cpp

 it produces the following linking error:

 {{{
 Undefined symbols for architecture x86_64:
   "std::regex_token_iterator<__gnu_cxx::__normal_iterator<char const*,
 std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
 char, std::regex_traits<char>
 >::regex_token_iterator(__gnu_cxx::__normal_iterator<char const*,
 std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
 __gnu_cxx::__normal_iterator<char const*, std::basic_string<char,
 std::char_traits<char>, std::allocator<char> > >, std::basic_regex<char,
 std::regex_traits<char> > const&, int, std::bitset<11ul>)", referenced
 from:
       _main in cccDMjnE.o
 ld: symbol(s) not found for architecture x86_64
 collect2: error: ld returned 1 exit status
 }}}

 The problem does not appear under the system's default clang++ compiler.
 The regex symbols are part of the standard library and should be present
 and properly linked with the test code.

-- 
Ticket URL: <https://trac.macports.org/ticket/35593>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list