title: I'm building for Raspberry Pi and have unresolved system symbols
body: <p>I'm building a library on/for the Raspberry Pi and want to know where these missing symbols are, and how I link to the appropriate libraries.</p>
  
  <p>I compile with </p>
  
  <pre><code>G++ -pthread -x c++ -std=c++11 ... source   
  // note this also with gcc same problem whether g++ or gcc command
  </code></pre>
  
  <p>And link with</p>
  
  <pre><code>gcc -pthread -shared -shared-libgcc ... ( objs, libs )
  </code></pre>
  
  <p>undefined symbols:</p>
  
  <pre><code>undefined reference to `__cxa_end_catch'
  undefined reference to `ceil'
  undefined reference to `__cxa_guard_release'
  undefined reference to `std::allocator&lt;char&gt;::allocator()'
  undefined reference to `__dynamic_cast'
  undefined reference to `std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;::~basic_string()'
  undefined reference to `std::string::operator=(char const*)'
  undefined reference to `__cxa_begin_catch'
  undefined reference to `std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;::basic_string(char const*, std::allocator&lt;char&gt; const&amp;)'
  undefined reference to `__cxa_rethrow'
  undefined reference to `typeinfo for artd::Thread'
  undefined reference to `__cxa_guard_abort'
  undefined reference to `__cxa_demangle'
  undefined reference to `std::__throw_length_error(char const*)'
  undefined reference to `dladdr'
  undefined reference to `std::__throw_bad_alloc()'
  undefined reference to `std::allocator&lt;char&gt;::~allocator()'
  undefined reference to `__cxa_guard_acquire'
  collect2: error: ld returned 1 exit status
  </code></pre>