<div dir="ltr">Hi.<div><br></div><div>I was able to cross-compile llvm/clang for i386 and i'm trying to use it in my ios app.</div><div>Also i was able to add headers and static libs (both libLLVM*.a and libclang*.a) and compile/link the project with no errors.</div>
<div><br></div><div>But when trying to run simple app i'm getting error:</div><div><br></div><div>
<p class=""><b>Detected an attempt to call a symbol in system libraries that is not present on the iPhone:</b></p>
<p class=""><b>pthread_mutexattr_destroy$UNIX2003 called from function _ZN4llvm3sys9MutexImplC2Eb in image LibClangUsageDemo3.</b></p></div><div><br></div><div>What can i do in order to fix it?</div><div><br></div><div>Is it llvm/clang issue or i'm doing smth wrong?</div>
<div><br></div><div>Regards, Anton.</div></div>