title: Qt Creator: Undefined symbols for architecture x86_64
body: <p>I have a program in Qt creator that compiles and runs fine in a Windows machine. But as soon as I tried to compile it in a Mac OS X (10.9) I received these messages:</p>
  
  <pre><code>Undefined symbols for architecture x86_64:
    "std::__1::__basic_string_common&lt;true&gt;::__throw_length_error() const", referenced from:
        std::__1::enable_if&lt;__is_forward_iterator&lt;char*&gt;::value, void&gt;::type std::__1::basic_string&lt;char, std::__1::char_traits&lt;char&gt;, std::__1::allocator&lt;char&gt; &gt;::__init&lt;char*&gt;(char*, char*) in libVolumeSelectorLib.a(NetCDFDataSource.o)
  ...
  ld: symbol(s) not found for architecture x86_64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  make: *** [UI.app/Contents/MacOS/UI] Error 1
  14:38:02: The process "/usr/bin/make" exited with code 2.
  Error while building/deploying project VVSIT (kit: Desktop Qt 5.4.0 clang 64bit)
  When executing step "Make"
  </code></pre>
  
  <p>I have tried cleaning and compiling again in case some file built on Windows had made it to the Mac, but that is not the case, the problem continues happening.</p>
  
  <p>I've checked these posts but their solutions didn't work:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/10560249/undefined-symbols-for-architecture-x86-64-in-qt-creator">Undefined symbols for architecture x86_64 in QT-creator</a></li>
  <li><a href="https://stackoverflow.com/questions/23806544/undefined-symbols-for-architecture-x86-64-in-qt-creator">https://stackoverflow.com/questions/23806544/undefined-symbols-for-architecture-x86-64-in-qt-creator</a></li>
  </ul>
  
  <p>Any idea how to solve this error?</p>