【问题标题】:LibXML2 xmlGetProp() - No matching functionLibXML2 xmlGetProp() - 没有匹配的函数
【发布时间】:2012-10-03 18:59:48
【问题描述】:

您好,我在 XCode 4.5 中运行 libxml2,并且遇到了 xmlGetProp() 函数的问题。 XCode 说调用没有匹配的函数。

我已经将${SDK_DIR}/usr/include/libxml2 添加到我的标头搜索路径中,并在 Link Binary With Libaries 中添加了 libxml2.dylib。

请帮忙?

【问题讨论】:

    标签: c++ xcode macos libxml2 xcode4.5


    【解决方案1】:

    确保将第二个参数强制转换为 const xmlChar *

    阿拉

    uri = xmlGetProp(cur, (const xmlChar *)"PV");

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-05-09
      • 2014-08-16
      • 2020-12-10
      • 1970-01-01
      • 2018-01-08
      • 2021-09-21
      • 2016-11-23
      相关资源
      最近更新 更多