gpt4 book ai didi

c++ - 在 C++ 中执行期间的 "undefined symbol"

转载 作者:行者123 更新时间:2023-11-30 04:33:25 24 4
gpt4 key购买 nike

我的程序编译和链接没有错误。但是当我开始运行程序时,它说

"undefined symbol: _ZN6Flexus11SharedTypes19FastBranchPredictor9combiningERKSsj"

这怎么可能?如果有任何模糊之处,则不应链接程序。

去管理:

Flexus::SharedTypes::FastBranchPredictor::combining(std::string const&, unsigned int)

最佳答案

我认为您正在链接到一个动态库,该库不包含您试图从中调用的函数。编译器和/或链接器无法检测到错误,因为您正在链接到库运行时

关于c++ - 在 C++ 中执行期间的 "undefined symbol",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6882527/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com