title: Xcode 5.1.1 and Boost
body: <h1>Problem was solved by adding .dylib files (boost) to project.</h1>
  
  <p>I'm trying connect Boost 1.55 to Xcode 5 through Homebrew. 
  Brew installed it as it should. In /usr/local/include &amp;&amp; /usr/local/lib appeared aliases on Boost headers and libraries.</p>
  
  <p>Xcode "Search Path" settings: 
  <a href="http://i.imgur.com/j5GJ0sh.png" rel="nofollow">http://i.imgur.com/j5GJ0sh.png</a>
  <a href="http://i.imgur.com/DXRxiyA.png" rel="nofollow">http://i.imgur.com/DXRxiyA.png</a></p>
  
  <p>But when I tried compile simple example:</p>
  
  <pre><code>#include &lt;cstdlib&gt;
  #include &lt;iostream&gt;
  #include &lt;cstring&gt;
  #include &lt;boost/regex.hpp&gt;
  
  using namespace std;
  using namespace boost;
  
      int main()
      {
          const regex expression( "How to re" );
  
          string string1 = "How to re";
  
          bool match=regex_match(string1,expression);
  
          if (match){
              cout&lt;&lt;"Yes"&lt;&lt;endl;
          }
  
          return 0;
      }
  </code></pre>
  
  <p>Errors:</p>
  
  <blockquote>
    <p>Undefined symbols for architecture x86_64:   "boost::basic_regex ></p>
    
    <blockquote>
      <p>::do_assign(char const*, char const*, unsigned int)", referenced from:
            boost::basic_regex > >::assign(char const*, char const*,
      unsigned int) in main.o   "boost::re_detail::get_mem_block()",
      referenced from:
            boost::re_detail::perl_matcher,
      std::__1::allocator > >, boost::regex_traits >
      ::extend_stack() in main.o
            boost::re_detail::save_state_init::save_state_init(boost::re_detail::saved_state**,
      boost::re_detail::saved_state**) in main.o<br>
      "boost::re_detail::put_mem_block(void*)", referenced from:
            boost::re_detail::save_state_init::~save_state_init() in main.o
            boost::re_detail::perl_matcher,
      std::__1::allocator > >, boost::regex_traits >
      ::unwind_extra_block(bool) in main.o   "boost::re_detail::verify_options(unsigned int,
      boost::regex_constants::_match_flags)", referenced from:
            boost::re_detail::perl_matcher,
      std::__1::allocator > >, boost::regex_traits >
      ::match_imp() in main.o   "boost::re_detail::raise_runtime_error(std::runtime_error const&amp;)",
      referenced from:
            void boost::re_detail::raise_error > >
      (boost::regex_traits_wrapper > > const&amp;,
      boost::regex_constants::error_type) in main.o<br>
      "boost::re_detail::get_default_error_string(boost::regex_constants::error_type)",
      referenced from:
            boost::re_detail::cpp_regex_traits_implementation::error_string(boost::regex_constants::error_type)
      const in main.o<br>
      "boost::re_detail::cpp_regex_traits_implementation::transform_primary(char const*, char const*) const", referenced from:
            boost::cpp_regex_traits::transform_primary(char const*, char const*) const in main.o<br>
      "boost::re_detail::cpp_regex_traits_implementation::transform(char
      const*, char const*) const", referenced from:
            boost::cpp_regex_traits::transform(char const*, char const*) const in main.o ld: symbol(s) not found for architecture
      x86_64 clang: error: linker command failed with exit code 1 (use -v to
      see invocation)</p>
    </blockquote>
  </blockquote>
  
  <p>Really tired with it, so, ask for your help.</p>
  
  <p>Thank you,
   - Philipp</p>