::__throw_length_error() const"" /> ::__throw_length_error() const" - 源码之家" />

xcode编译错误"std::__1::__vector_base_common::__throw_length_error() const"

Undefined symbols for architecture armv7:

"std::__1::__vector_base_common<true>::__throw_length_error() const"......

link STL的错误是编译静态库的时候使用不同版本的标准库(C++ Standard Library)

类似情况会出现在 c++ 混编的情况下,如下设置可消除报错:

xcode编译错误"std::__1::__vector_base_common<true>::__throw_length_error() const"