我已经浏览了stackoverflow中的所有Mach-O链接器错误条目,但无法解决问题。请参阅以下信息:
如果删除搜索路径,则无法发现SDK框架,因此我必须重新添加。
Undefined symbols for architecture i386:
"std::string::find_last_of(char const*, unsigned long) const", referenced from:
talk_base::Pathname::SetPathname(std::string const&) in ACBClientSDK(pathutils.o)
talk_base::Pathname::folder_name() const in ACBClientSDK(pathutils.o)
talk_base::Pathname::parent_folder() const in ACBClientSDK(pathutils.o)
"std::string::find_last_of(char, unsigned long) const", referenced from:
buzz::SuggestPrefix(std::string const&) in ACBClientSDK(xmlnsstack.o)
"std::string::find_first_of(char const*, unsigned long) const", referenced from:
webrtc::DtmfSender::DoInsertDtmf() in ACBClientSDK(dtmfsender.o)
talk_base::Pathname::SetBasename(std::string const&) in ACBClientSDK(pathutils.o)
talk_base::Pathname::SetExtension(std::string const&) in ACBClientSDK(pathutils.o)
buzz::XmlPrinterImpl::PrintQuotedValue(std::string const&) in ACBClientSDK(xmlprinter.o)
buzz::XmlPrinterImpl::PrintBodyText(std::string const&) in ACBClientSDK(xmlprinter.o)
"std::string::find_first_of(char, unsigned long) const", referenced from:
talk_base::Pathname::SetExtension(std::string const&) in ACBClientSDK(pathutils.o)
"std::string::find_last_not_of(char const*, unsigned long) const", referenced from:
talk_base::string_trim(std::string const&) in ACBClientSDK(stringutils.o)
"std::string::find_first_not_of(char const*, unsigned long) const", referenced from:
talk_base::string_trim(std::string const&) in ACBClientSDK(stringutils.o)
我该如何解决这个问题?期待您的回复!提前谢谢!
答案 0 :(得分:5)
我在尝试设置新的CafeX项目时遇到了同样的问题。我完全按照文档进行操作,当我尝试构建时遇到了87个链接器错误。我通过添加libstdc ++来解决这个问题。我注意到的6.dylib是在那里的示例应用程序但在文档中没有提到。
答案 1 :(得分:0)
解决方案的可能性:
添加" -all_load"到你的其他链接器标志
检查导入.m而不是.h