- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我在 XCode 上编译现有项目时遇到此错误。我尝试使用 Google 云端硬盘中的快速入门(第 3 步)https://developers.google.com/drive/ios/quickstart完成所有 8 个步骤后,我收到 4 个 Apple Mach-O 链接器错误错误。然后我撤消了所有步骤,但更糟。
Undefined symbols for architecture i386:
"_initGenericErrorDefaultFunc", referenced from:
___23+[DDXMLNode initialize]_block_invoke in DDXMLNode.o
"_xmlAddChild", referenced from:
-[DDXMLElement addAttribute:] in DDXMLElement.o
-[DDXMLElement addChild:] in DDXMLElement.o
-[DDXMLElement insertChild:atIndex:] in DDXMLElement.o
_xmpp_xmlStartElement in XMPPParser.o
_xmpp_xmlCharacters in XMPPParser.o
"_xmlAddPrevSibling", referenced from:
-[DDXMLElement insertChild:atIndex:] in DDXMLElement.o
"_xmlBufferCreate", referenced from:
-[DDXMLNode XMLStringWithOptions:] in DDXMLNode.o
"_xmlBufferFree", referenced from:
-[DDXMLNode XMLStringWithOptions:] in DDXMLNode.o
"_xmlCopyDoc", referenced from:
-[DDXMLNode copyWithZone:] in DDXMLNode.o
"_xmlCopyDtd", referenced from:
-[DDXMLNode copyWithZone:] in DDXMLNode.o
"_xmlCopyNamespace", referenced from:
-[DDXMLNode copyWithZone:] in DDXMLNode.o
"_xmlCopyNode", referenced from:
_xmpp_onDidReadRoot in XMPPParser.o
-[DDXMLNode copyWithZone:] in DDXMLNode.o
"_xmlCopyProp", referenced from:
-[DDXMLNode copyWithZone:] in DDXMLNode.o
"_xmlCreatePushParserCtxt", referenced from:
-[XMPPParser initWithDelegate:delegateQueue:parserQueue:] in XMPPParser.o
"_xmlCtxtGetLastError", referenced from:
___24-[XMPPParser parseData:]_block_invoke in XMPPParser.o
"_xmlDocGetRootElement", referenced from:
-[DDXMLDocument rootElement] in DDXMLDocument.o
_xmpp_postEndElement in XMPPParser.o
_xmpp_xmlSearchNs in XMPPParser.o
_xmpp_postStartElement in XMPPParser.o
"_xmlDocSetRootElement", referenced from:
-[DDXMLNode nodesForXPath:error:] in DDXMLNode.o
"_xmlEncodeSpecialChars", referenced from:
-[DDXMLNode setStringValue:] in DDXMLNode.o
-[DDXMLNamespaceNode setStringValue:] in DDXMLNode.o
-[DDXMLAttributeNode setStringValue:] in DDXMLNode.o
"_xmlFree", referenced from:
_xmpp_xmlStartElement in XMPPParser.o
-[DDXMLNode setStringValue:] in DDXMLNode.o
-[DDXMLNode stringValue] in DDXMLNode.o
-[DDXMLNamespaceNode setName:] in DDXMLNode.o
-[DDXMLNamespaceNode setStringValue:] in DDXMLNode.o
-[DDXMLAttributeNode setStringValue:] in DDXMLNode.o
_xmpp_xmlStartElement in XMPPParser.o
-[DDXMLNode setStringValue:] in DDXMLNode.o
-[DDXMLNode stringValue] in DDXMLNode.o
-[DDXMLNamespaceNode setName:] in DDXMLNode.o
-[DDXMLNamespaceNode setStringValue:] in DDXMLNode.o
-[DDXMLAttributeNode setStringValue:] in DDXMLNode.o
"_xmlFreeDoc", referenced from:
-[XMPPParser dealloc] in XMPPParser.o
-[DDXMLNode dealloc] in DDXMLNode.o
-[DDXMLNode nodesForXPath:error:] in DDXMLNode.o
"_xmlFreeDtd", referenced from:
-[DDXMLNode dealloc] in DDXMLNode.o
"_xmlFreeNode", referenced from:
-[DDXMLNode dealloc] in DDXMLNode.o
+[DDXMLNode removeChild:] in DDXMLNode.o
+[DDXMLNode removeAllChildrenFromNode:] in DDXMLNode.o
"_xmlFreeNs", referenced from:
-[DDXMLNode dealloc] in DDXMLNode.o
+[DDXMLNode removeNamespace:fromNode:] in DDXMLNode.o
+[DDXMLNode removeAllNamespacesFromNode:] in DDXMLNode.o
-[DDXMLAttributeNode dealloc] in DDXMLNode.o
-[DDXMLAttributeNode setURI:] in DDXMLNode.o
"_xmlFreeParserCtxt", referenced from:
-[XMPPParser dealloc] in XMPPParser.o
"_xmlFreeProp", referenced from:
-[DDXMLNode dealloc] in DDXMLNode.o
+[DDXMLNode removeAttribute:] in DDXMLNode.o
+[DDXMLNode removeAllAttributesFromNode:] in DDXMLNode.o
"_xmlIndentTreeOutput", referenced from:
-[DDXMLNode XMLStringWithOptions:] in DDXMLNode.o
"_xmlKeepBlanksDefault", referenced from:
-[DDXMLDocument initWithData:options:error:] in DDXMLDocument.o
___23+[DDXMLNode initialize]_block_invoke in DDXMLNode.o
"_xmlNewComment", referenced from:
+[DDXMLNode commentWithStringValue:] in DDXMLNode.o
"_xmlNewDoc", referenced from:
-[XMPPParser initWithDelegate:delegateQueue:parserQueue:] in XMPPParser.o
-[DDXMLNode nodesForXPath:error:] in DDXMLNode.o
"_xmlNewDocNode", referenced from:
_xmpp_xmlStartElement in XMPPParser.o
"_xmlNewNode", referenced from:
-[DDXMLElement initWithName:] in DDXMLElement.o
-[DDXMLElement initWithName:URI:] in DDXMLElement.o
-[DDXMLElement initWithName:stringValue:] in DDXMLElement.o
"_xmlNewNs", referenced from:
_xmpp_xmlStartElement in XMPPParser.o
+[DDXMLNode namespaceWithName:stringValue:] in DDXMLNode.o
-[DDXMLNode setURI:] in DDXMLNode.o
+[DDXMLNode recursiveMigrateNamespace:to:node:] in DDXMLNode.o
+[DDXMLNode recursiveFixDefaultNamespacesInNode:withNewRoot:] in DDXMLNode.o
-[DDXMLAttributeNode detach] in DDXMLNode.o
-[DDXMLAttributeNode setURI:] in DDXMLNode.o
...
"_xmlNewNsProp", referenced from:
_xmpp_xmlStartElement in XMPPParser.o
"_xmlNewPI", referenced from:
+[DDXMLNode processingInstructionWithName:stringValue:] in DDXMLNode.o
"_xmlNewProp", referenced from:
_xmpp_xmlStartElement in XMPPParser.o
+[DDXMLNode attributeWithName:stringValue:] in DDXMLNode.o
+[DDXMLNode attributeWithName:URI:stringValue:] in DDXMLNode.o
"_xmlNewText", referenced from:
+[DDXMLNode textWithStringValue:] in DDXMLNode.o
-[DDXMLAttributeNode setStringValue:] in DDXMLNode.o
"_xmlNewTextLen", referenced from:
_xmpp_xmlCharacters in XMPPParser.o
"_xmlNodeDump", referenced from:
-[DDXMLNode XMLStringWithOptions:] in DDXMLNode.o
"_xmlNodeGetContent", referenced from:
-[DDXMLNode stringValue] in DDXMLNode.o
"_xmlNodeSetContent", referenced from:
-[DDXMLNode setStringValue:] in DDXMLNode.o
-[DDXMLAttributeNode setStringValue:] in DDXMLNode.o
"_xmlNodeSetName", referenced from:
-[DDXMLNode setName:] in DDXMLNode.o
"_xmlParseChunk", referenced from:
___24-[XMPPParser parseData:]_block_invoke in XMPPParser.o
"_xmlParseMemory", referenced from:
-[DDXMLDocument initWithData:options:error:] in DDXMLDocument.o
"_xmlSaveNoEmptyTags", referenced from:
-[DDXMLNode XMLStringWithOptions:] in DDXMLNode.o
"_xmlSearchNs", referenced from:
-[DDXMLElement elementsForName:] in DDXMLElement.o
-[DDXMLAttributeNode URI] in DDXMLNode.o
"_xmlSetStructuredErrorFunc", referenced from:
___23+[DDXMLNode initialize]_block_invoke in DDXMLNode.o
"_xmlStopParser", referenced from:
_xmpp_xmlAbortDueToMemoryShortage in XMPPParser.o
"_xmlStrEqual", referenced from:
-[DDXMLElement _elementsForName:localName:prefix:uri:] in DDXMLElement.o
-[DDXMLElement _hasAttributeWithName:] in DDXMLElement.o
-[DDXMLElement _removeAttributeForName:] in DDXMLElement.o
-[DDXMLElement attributeForName:] in DDXMLElement.o
-[DDXMLElement _removeNamespaceForPrefix:] in DDXMLElement.o
-[DDXMLElement namespaceForPrefix:] in DDXMLElement.o
-[DDXMLElement _recursiveResolveNamespaceForPrefix:atNode:] in DDXMLElement.o
...
"_xmlStrQEqual", referenced from:
-[DDXMLElement attributeForName:] in DDXMLElement.o
"_xmlStrdup", referenced from:
-[DDXMLNamespaceNode setName:] in DDXMLNode.o
"_xmlStringLenDecodeEntities", referenced from:
_xmpp_xmlStartElement in XMPPParser.o
"_xmlUnlinkNode", referenced from:
-[DDXMLNode nodesForXPath:error:] in DDXMLNode.o
"_xmlXPathEvalExpression", referenced from:
-[DDXMLNode nodesForXPath:error:] in DDXMLNode.o
"_xmlXPathFreeContext", referenced from:
-[DDXMLNode nodesForXPath:error:] in DDXMLNode.o
"_xmlXPathFreeObject", referenced from:
-[DDXMLNode nodesForXPath:error:] in DDXMLNode.o
"_xmlXPathNewContext", referenced from:
-[DDXMLNode nodesForXPath:error:] in DDXMLNode.o
"_xmlXPathRegisterNs", referenced from:
-[DDXMLNode nodesForXPath:error:] in DDXMLNode.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invo
cation)
请帮助我,我已经被困了 4 天多了:(
最佳答案
您需要链接 libxml2。在 Xcode 中,添加
OTHER_LDFLAGS = -lxml2
HEADER_SEARCH_PATHS = /usr/include/libxml2
更多详情 here
关于ios - Apple Mach-O 链接器错误 - Objective C,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23856167/
在使用 requests 库中的状态代码时,我遇到了一些奇怪的事情。每个 HTTP 状态代码都有一个常量,有些具有别名(例如,包括 200 的复选标记): url = 'https://httpbin
这是我得到的代码,但我不知道这两行是什么意思: o[arr[i]] = o[arr[i]] || {}; o = o[arr[i]]; 完整代码: var GLOBAL={}; GLOBAL.name
所以这个问题的答案What is the difference between Θ(n) and O(n)? 指出“基本上,当我们说算法是 O(n) 时,它也是 O(n2)、O(n1000000)、O
这是一个快速的想法;有人会说 O(∞) 实际上是 O(1) 吗? 我的意思是它不依赖于输入大小? 所以在某种程度上它是恒定的,尽管它是无限的。 或者是唯一“正确”的表达方式 O(∞)? 最佳答案 无穷
这是真的: log(A) + log(B) = log(A * B) [0] 这也是真的吗? O(log(A)) + O(log(B)) = O(log(A * B)) [1] 据我了解 O(f
我正在解决面试练习的问题,但我似乎无法找出以下问题的时间和空间复杂度的答案: Given two sorted Linked Lists, merge them into a third list i
我了解 Big-Oh 表示法。但是我该如何解释 O(O(f(n))) 是什么意思呢?是指增长率的增长率吗? 最佳答案 x = O(n)基本上意味着 x <= kn对于一些常量 k . 因此 x = O
我正在编写一个函数,该函数需要一个对象和一个投影来了解它必须在哪个字段上工作。 我想知道是否应该使用这样的字符串: const o = { a: 'Hello There' }; funct
直觉上,我认为这三个表达式是等价的。 例如,如果一个算法在 O(nlogn) + O(n) 或 O(nlogn + n) 中运行(我很困惑),我可以假设这是一个O(nlogn) 算法? 什么是真相?
根据 O'Reilly 的 Python in a Nutshell 中的 Alex Martelli,复杂度类 O(n) + O(n) = O(n)。所以我相信。但是我很困惑。他解释说:“N 的两个
O(n^2)有什么区别和 O(n.log(n)) ? 最佳答案 n^2 的复杂性增长得更快。 关于big-o - 大 O 符号 : differences between O(n^2) and O(n
每当我收到来自 MS outlook 的电子邮件时,我都会收到此标记 & nbsp ; (没有空格)哪个显示为?在 <>. 当我将其更改为 ISO-8859-1 时,浏览器页面字符集编码为 UTF-8
我很难理解 Algorithms by S. Dasgupta, C.H. Papadimitriou, and U.V. Vazirani - page 24 中的以下陈述它们将 O(n) 的总和表
我在面试蛋糕上练习了一些问题,并在问题 2给出的解决方案使用两个单独的 for 循环(非嵌套),解决方案提供者声称他/她在 O(n) 时间内解决了它。据我了解,这将是 O(2n) 时间。是我想错了吗,
关于 Java 语法的幼稚问题。什么 T accept(ObjectVisitorEx visitor); 是什么意思? C# 的等价物是什么? 最佳答案 在 C# 中它可能是: O Accept(
假设我有一个长度为 n 的数组,我使用时间为 nlogn 的排序算法对它进行了排序。得到这个排序后的数组后,我遍历它以找到任何具有线性时间的重复元素。我的理解是,由于操作是分开发生的,所以时间是 O(
总和 O(1)+O(2)+ .... +O(n) 的计算结果是什么? 我在某处看到它的解决方案: O(n(n+1) / 2) = O(n^2) 但我对此并不满意,因为 O(1) = O(2) = co
这个问题在这里已经有了答案: 11 年前关闭。 Possible Duplicate: Plain english explanation of Big O 我想这可能是类里面教的东西,但作为一个自学
假设我有两种算法: for (int i = 0; i 2)更长的时间给定的一些n - 其中n这种情况的发生实际上取决于所涉及的算法 - 对于您的具体示例, n 2)分别时间,您可能会看到: Θ(n)
这个问题在这里已经有了答案: Example of a factorial time algorithm O( n! ) (4 个回答) 6年前关闭。 我见过表示为 O(X!) 的 big-o 示例但
我是一名优秀的程序员,十分优秀!