[cfe-dev] linking with libclang for ios

Anton Smirnov dev at antonsmirnov.name
Sat Jul 5 06:31:22 PDT 2014


Hi.

I was able to cross-compile llvm/clang for i386 and i'm trying to use it in
my ios app.
Also i was able to add headers and static libs (both libLLVM*.a and
libclang*.a) and compile/link the project with no errors.

But when trying to run simple app i'm getting error:

*Detected an attempt to call a symbol in system libraries that is not
present on the iPhone:*

*pthread_mutexattr_destroy$UNIX2003 called from function
_ZN4llvm3sys9MutexImplC2Eb in image LibClangUsageDemo3.*

What can i do in order to fix it?

Is it llvm/clang issue or i'm doing smth wrong?

Regards, Anton.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140705/e70c24bd/attachment.html>


More information about the cfe-dev mailing list