gpt4 book ai didi

c++ - LibXML2 xmlGetProp() - 没有匹配函数

转载 作者:太空宇宙 更新时间:2023-11-04 12:04:39 26 4
gpt4 key购买 nike

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

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

请帮忙?

最佳答案

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

阿拉

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

关于c++ - LibXML2 xmlGetProp() - 没有匹配函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12715042/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com