<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <font size="+1">Hi,<br>
      <br>
      <br>
      I'm getting this link error<br>
      <br>
      /usr/bin/ld: error:
      /home/ben/development/boost/test/build/results/boost/bin.v2/libs/thread/test/thread__constr__FArgs_p_lib.test/clang-linux-3.7~asan~c14_libc++/debug/threading-multi/threads/thread/constr/FArgs_pass.o:
      multiple definition of 'operator delete(void*)'<br>
      /usr/bin/ld:
      /home/ben/development/llvm/trunk/install/release/bin/../lib/clang/3.7.0/lib/linux/libclang_rt.asan_cxx-x86_64.a(asan_new_delete.cc.o):
      previous definition here<br>
      <br>
      <br>
      at<br>
      <br>
<a class="moz-txt-link-freetext" href="http://www.boost.org/development/tests/develop/developer/output/BenPope%20x86_64%20Ubuntu-boost-bin-v2-libs-thread-test-thread__constr__FArgs_p_lib-test-clang-linux-3-7~asan~c14_libc++-debug-threading-multi.html">http://www.boost.org/development/tests/develop/developer/output/BenPope%20x86_64%20Ubuntu-boost-bin-v2-libs-thread-test-thread__constr__FArgs_p_lib-test-clang-linux-3-7~asan~c14_libc++-debug-threading-multi.html</a><br>
      <br>
      <br>
      I define it as follows<br>
      <br>
      #if defined _GLIBCXX_THROW<br>
      void* operator new(std::size_t s) _GLIBCXX_THROW (std::bad_alloc)<br>
      #elif defined BOOST_MSVC<br>
      void* operator new(std::size_t s)<br>
      #else<br>
      void* operator new(std::size_t s) throw (std::bad_alloc)<br>
      #endif<br>
      {<br>
        std::cout &lt;&lt; __FILE__ &lt;&lt; ":" &lt;&lt; __LINE__
      &lt;&lt; std::endl;<br>
        if (throw_one == 0) throw std::bad_alloc();<br>
        --throw_one;<br>
        return std::malloc(s);<br>
      }<br>
      <br>
      Is this a compiler issue, or is my definition of the operator new
      incorrect?<br>
      <br>
      Vicente<br>
    </font>
  </body>
</html>

