[MacPorts] #35593: gcc47 @4.7.1, Revision 2 -- Undefined symbols from standard library
#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
#35593: gcc47 @4.7.1, Revision 2 -- Undefined symbols from standard library ---------------------------------+------------------------------------------ Reporter: rob.patro@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: gcc47 ---------------------------------+------------------------------------------ Changes (by ryandesign@…): * owner: macports-tickets@… => mww@… * priority: High => Normal * port: => gcc47 -- Ticket URL: <https://trac.macports.org/ticket/35593#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts