检测到在系统库中调用符号的尝试..当使用libclang for ios app时

时间:2014-07-05 13:57:27

标签: ios xcode clang llvm llvm-clang

我能够为i386交叉编译llvm / clang,我试图在我的ios应用程序中使用它。 此外,我能够添加标头和静态库(libLLVM * .a和libclang * .a)并编译/链接项目,没有错误。

但是当试图运行简单的应用程序时,我收到了错误:

  

检测到尝试调用非系统库中的符号   目前在iPhone上:pthread_mutexattr_destroy $ UNIX2003来自   图像LibClangUsageDemo3中的函数_ZN4llvm3sys9MutexImplC2Eb。

我该怎么做才能解决它?

是llvm / clang问题还是我做错了?

更新:我能够找到错误行 - Mutex.cpp

// Destroy the attributes
errorcode = pthread_mutexattr_destroy(&attr);
assert(errorcode == 0);

0 个答案:

没有答案