![](/img/trans.png)
[英]Import .CPP files from a working iOS project and rename to .mm issue
[英]VLCKit conflict with .mm file in iOS project
我在我的iOS項目中使用VLCKit(MobileVLCKit.framework)。 起初,一切正常。 然后添加一些C ++代碼,因此某些文件是.mm文件。 當我編譯時,它失敗了。 Xcode日志
Undefined symbols for architecture armv7:
"std::runtime_error::runtime_error(std::string const&)", referenced from:
libebml::CRTError::CRTError(std::string const&, int) in MobileVLCKit(StdIOCallback.o)
"std::ostream& std::ostream::_M_insert<void const*>(void const*)", referenced from:
libebml::IOCallback::writeFully(void const*, unsigned long) in MobileVLCKit(IOCallback.o)
libebml::IOCallback::readFully(void*, unsigned long) in MobileVLCKit(IOCallback.o)
"std::runtime_error::runtime_error(std::string const&)", referenced from:
libebml::IOCallback::writeFully(void const*, unsigned long) in MobileVLCKit(IOCallback.o)
libebml::IOCallback::readFully(void*, unsigned long) in MobileVLCKit(IOCallback.o)
"VTT for std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >", referenced from:
...
我不知道為什么以及如何解決這個問題。
我找到了解決方案:在“構建設置”中將C ++標准庫更改為libstdc ++(GNU c ++標准庫)。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.