IOS-VLC静态库使用时报错

编译VLC静态库通过了,并且在官方的源码中也能正常使用此静态库

Undefined symbols for architecture armv7:
  "std::runtime_error::runtime_error(std::string const&)", referenced from:
      libebml::CRTError::CRTError(std::string const&, int) in libMobileVLCKit.a(StdIOCallback.o)
  "std::ostream& std::ostream::_M_insert(void const*)", referenced from:
      libebml::IOCallback::writeFully(void const*, unsigned long) in libMobileVLCKit.a(IOCallback.o)
      libebml::IOCallback::readFully(void*, unsigned long) in libMobileVLCKit.a(IOCallback.o)
  "std::runtime_error::runtime_error(std::string const&)", referenced from:
      libebml::IOCallback::writeFully(void const*, unsigned long) in libMobileVLCKit.a(IOCallback.o)
      libebml::IOCallback::readFully(void*, unsigned long) in libMobileVLCKit.a(IOCallback.o)
  "std::ostream& std::ostream::_M_insert(long long)", referenced from:
      dash::mpd::SegmentTemplate::getSourceUrl() const in libMobileVLCKit.a(libdash_plugin_la-SegmentTemplate.o)
  "std::basic_string, std::allocator >::basic_string(char const*, std::allocator const&)", referenced from:
      TagLib::FileStream::FileStream(char const*, bool) in libMobileVLCKit.a(tfilestream.cpp.o)

解决方案:把C language Dialect 设置为Compoler Default 把 Compolile Source As 设置为According to File Type 最重要的要把 C++ Standard Library 设置为 libstdc ++ 最后一步把appdelegate的.m文件后缀改为.mm 问题解决 成功走起 。。


IOS-VLC静态库使用时报错_第1张图片
21_313298_7db75e647fc980d.png

你可能感兴趣的:(IOS-VLC静态库使用时报错)