Changes between Initial Version and Version 1 of Ticket #43650


Ignore:
Timestamp:
May 9, 2014, 7:20:41 PM (10 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #43650 – Description

    initial v1  
    33I installed boost with MacPorts, most library works perfectly except boost::regex. Here is the informations from my dev environment:
    44
     5{{{
    56$ uname -a
    6 
    77Darwin Kernel Version 13.1.0: Wed Apr  2 23:52:02 PDT 2014; root:xnu-2422.92.1~2/RELEASE_X86_64 x86_64
    8 
    98$ sudo port installed | grep boost
    10 
    119boost @1.55.0_2+no_single+no_static+python27 (active)
     10}}}
    1211
    1312here is the source code, quite simple:
    1413
     14{{{
    1515$ cat test.cpp
    1616
     
    2525    boost::regex_match("foo", exp);
    2626}
     27}}}
    2728
     29{{{
    2830$ g++ --version
    29 
    3031g++ (MacPorts gcc48 4.8.2_0) 4.8.2
    3132Copyright (C) 2013 Free Software Foundation, Inc.
    3233
    3334$ g++ -std=c++11 -o test -I/opt/local/include -L/opt/local/lib -lboost_regex-mt test.cpp
    34 
    3535Undefined symbols for architecture x86_64:
    3636  "boost::re_detail::perl_matcher<char const*, std::allocator<boost::sub_match<char const*> >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::_match_flags)", referenced from:
     
    4040ld: symbol(s) not found for architecture x86_64
    4141collect2: error: ld returned 1 exit status
     42}}}
    4243
    4344Would you please help to check this problem? If you need any more information, please let me know.