title: Compiling static library for iOS that uses OpenMP
body: <p>I'm writing a simple cross-platform library that uses OpenMP but I can't figure out how to test it in an iPhone app.<br>
  I'm running <strong>OS X</strong>, with <strong>GCC 4.7</strong>, I compiled it as a static library, I also managed to link it together with <code>libgomp.a</code> and add it to my test app in Xcode. App builds without any error or warning but when I run it in the iPhone simulator all I get is this error message:</p>
  
  <pre><code>dyld: lazy symbol binding failed: Symbol not found: ___emutls_get_address
    Referenced from: /opt/local/lib/gcc47/i386/libgomp.1.dylib
    Expected in: /usr/lib/libSystem.B.dylib
  
  dyld: Symbol not found: ___emutls_get_address
    Referenced from: /opt/local/lib/gcc47/i386/libgomp.1.dylib
    Expected in: /usr/lib/libSystem.B.dylib
  </code></pre>
  
  <p>I read that there was a bug in previous versions of GCC with <code>___emutls_get_address</code>, but it should be fixed now. Do you have any idea what might be wrong?</p>