VLCKit 与 iOS 项目中的 .mm 文件冲突
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 ++标准库(。
相关文章:
- .cpp和.h文件中的模板专用化声明
- 为什么两个不同的未命名名称空间可以共存于一个cpp文件中
- 文本文件中的单词链表
- CMake-按正确顺序将项目与C运行时对象文件链接
- 使用新行和不使用新行读取文件
- 在C++程序中输入的文本文件将不起作用,除非文本被复制和粘贴
- 如何从远程 SFTP 服务器获取 HH-MM-SS 时间戳格式的文件列表
- 从工作iOS项目中导入.cpp文件并将其重命名为.mm问题
- 为什么 g++ -MM 选项忽略当前工作目录的包含文件
- UIView animateDuration:animations:complete: 块在 .mm 文件中不相配
- 找不到体系结构i386 cpp/mm文件的符号
- Objective-C 为什么 .mm 文件被认为是 int* 类型
- VLCKit 与 iOS 项目中的 .mm 文件冲突
- 从文件调用 .mm 函数时链接器出错.cpp
- m和mm文件扩展名的困境
- OCMock 3.0.2与.mm测试文件的链接错误
- 我可以将Swift与c++混合使用吗?比如Objective-C .mm文件
- NDK:编译扩展名为.mm的c++文件
- c++标准库在.mm文件中找到,但在.h文件中找不到(Xcode 4.5 LLVM GCC 4.2)
- #define在预编译头文件中无法识别.mm文件