Changes between Initial Version and Version 1 of Ticket #43650
- Timestamp:
- May 9, 2014, 7:20:41 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #43650 – Description
initial v1 3 3 I installed boost with MacPorts, most library works perfectly except boost::regex. Here is the informations from my dev environment: 4 4 5 {{{ 5 6 $ uname -a 6 7 7 Darwin 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 9 8 $ sudo port installed | grep boost 10 11 9 boost @1.55.0_2+no_single+no_static+python27 (active) 10 }}} 12 11 13 12 here is the source code, quite simple: 14 13 14 {{{ 15 15 $ cat test.cpp 16 16 … … 25 25 boost::regex_match("foo", exp); 26 26 } 27 }}} 27 28 29 {{{ 28 30 $ g++ --version 29 30 31 g++ (MacPorts gcc48 4.8.2_0) 4.8.2 31 32 Copyright (C) 2013 Free Software Foundation, Inc. 32 33 33 34 $ g++ -std=c++11 -o test -I/opt/local/include -L/opt/local/lib -lboost_regex-mt test.cpp 34 35 35 Undefined symbols for architecture x86_64: 36 36 "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: … … 40 40 ld: symbol(s) not found for architecture x86_64 41 41 collect2: error: ld returned 1 exit status 42 }}} 42 43 43 44 Would you please help to check this problem? If you need any more information, please let me know.