ios - SDK ios6 libxml2 预期为 ';'

标签 ios compiler-errors libxml2

升级到最新的 xcode sdk ios6 后,我无法构建我的项目;我的 libxml 有问题,但无法修复

这段代码:

typedef void (XMLCDECL *warningSAXFunc) (void *ctx,
                const char *msg, ...) LIBXML_ATTR_FORMAT(2,3);

生成:

Expected ';' after top level declaration

有人可以帮助我吗?

最佳答案

我添加了:

${SDKROOT}

到“标题搜索路径”,所以它是:

${SDKROOT}/usr/include/libxml2

关于ios - SDK ios6 libxml2 预期为 ';',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13586192/

相关文章:

xml - 如何替换XPath中的字符实体?

c - 删除 libxml2 c 中 xmldocument 和根节点之间的空白

iphone - 点击 uipickerview 时键盘不退出

ios - 如何一次性 AirPrint 多个打印格式化程序?

ios - Swift collectionView 选择单元格多选

c++ - 无法破译 “error: expected unqualified-id before ' int'”

python - 导入错误 : No module named libxml2

ios - 来自调试器 : Terminated due to memory issue 的消息

haskell - 导入模块时输入 ‘module’ 解析错误

compiler-errors - 为什么借用检查器会拒绝内联表达式但接受其分解形式?