I am writing a simple cross-platform library that uses OpenMP, but I cannot figure out how to test it in an application for the iPhone.
I am running OS X , with GCC 4.7 , I compiled it as a static library, I also managed to link it with libgomp.a and add it to my test application in Xcode. The application is created without any errors or warnings, but when I run it in the iPhone simulator, all I get is an error message:
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
I read that in previous versions of GCC there was a bug in ___emutls_get_address , but now it needs to be fixed. Do you have any ideas what might be wrong?
source share