“未定义的符号”在 C++ 中执行期间
我的程序编译和链接没有错误。然而,当我开始运行该程序时,它说
"undefined symbol: _ZN6Flexus11SharedTypes19FastBranchPredictor9combiningERKSsj"
这怎么可能?如果有任何模糊的地方,就不应该链接该程序。
解压:
Flexus::SharedTypes::FastBranchPredictor::combining(std::string const&, unsigned int)
My program compiles and links without an error. However when I start to run the program, it says
"undefined symbol: _ZN6Flexus11SharedTypes19FastBranchPredictor9combiningERKSsj"
How it is possible? If there is anything vague, it should not link the program.
DeMangeled:
Flexus::SharedTypes::FastBranchPredictor::combining(std::string const&, unsigned int)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您正在链接到一个动态库,该库不包含您尝试从中调用的函数。编译器和/或链接器无法检测到错误,因为您正在链接到库运行时
I think you're linking to a dynamic library which doesn't contain a function you're trying to call from it. The compiler and/or linker cannot detect the error because you're linking to the library runtime