c++ symbol _ZNSsC2ERKSsjj
c++ symbol _ZNSsC2ERKSsjj
我的应用程序在 c++ 符号 _ZNSsC2ERKSsjj 处崩溃。我使用 c++filt 查找符号,如下所示。
# c++filt _ZNSsC2ERKSsjj
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)
这个符号是什么意思?
它是
std::string
的构造函数,它接受一个const std::string&
和两个unsigned int
s(ref):
basic_string( const basic_string& other,
size_type pos,
size_type count = std::basic_string::npos,
const Allocator& alloc = Allocator() );
(您的实现是合规地将可选参数设计替换为一对重载,没有分配器参数的重载就是您在此处看到的重载。
你几乎肯定会超出输入字符串的范围,如果它首先是一个有效的字符串。
它是
std::string
构造函数,它占据两个位置(无符号整数)。这将构造参数的子字符串。
相关文章:
- 使用JsonCpp将数据返回到带有pybind11的python会在python调用中产生Symbol not foun
- 应用程序崩溃并显示"symbol _ZdlPvm, version Qt_5 not defined in file libQt5Core.so.5 with link time reference"
- CppSQLite 抛出"LNK2019: unresolved external symbol"错误
- 从不同目录执行时"symbol lookup error:",否则从构建目录执行时按预期工作
- Visual Studio中的wxwidgets应用程序给出错误"LNK2019 unresolved external symbol"
- 从 C 可执行文件加载动态库时收到错误C++"undefined symbol"
- " relocation truncated to fit: R_X86_64_PC32 against symbol `__imp_Sleep' "问题
- 在 C++ 中嵌入 V8 会导致与 libcpp 相关的"unrecognized external symbol"错误
- 为什么当我在 C 程序中链接静态库时会"undefined symbol"?
- OpenCV imwrite 函数导致'undefined symbol'
- cpp 在主源文件中包括.cpp文件导致错误"duplicate symbol"
- 在 Python 3.6 中调用C++扩展时导入错误"undefined symbol: _ZNK9FastNoise8GetNoiseEff"
- 我的游戏引擎的 spdlog 日志记录出现奇怪的"unresolved external symbol"错误
- 如何修复"unresolved external symbol _gladLoadGLLoader referenced in function _main"和"unresolved external
- 创建C++ Redis 模块 - "does not export RedisModule_OnLoad() symbol"
- 通过覆盖虚拟函数来获取'unresolved external symbol'
- PostgreSQL & CMakeLists - Undefined symbol [...] _my_sock_read in libpq.a(fe-secure-openssl.o)
- 如何解决问题"unresolved extenal symbol _DllMainCRTStartup@12"?
- 运行时动态加载库时出错"unresolved external symbol"
- "library has no symbol"是什么意思?