gpt4 book ai didi

c++ - Linux 上 RCF 的 boost 异常

转载 作者:太空宇宙 更新时间:2023-11-04 04:15:30 25 4
gpt4 key购买 nike

我在 boost 、C++

方面遇到了这个问题

我在 fedora14 上安装了新的 boost(boost 1.44)

我正在链接使用boost的RCF库,并且我也链接了boost,编译没问题,但是ar运行时,我收到以下错误:

src/RCF/MethodInvocation.cpp:413: Assertion failed. !mVecPtr || mVecPtr.unique() . Values: 
Denver: include/RCF/util/Assert.hpp:88: virtual util::AssertFunctor::~AssertFunctor(): Assertion `0 && "See line above for assertion details."' failed

最佳答案

失败的断言来自于 RCF 库的错误使用。这种不正确的使用并不总能被编译器检测到(或者更确切地说,编译器很少检测到)。

造成该断言的一个可能原因是同时存在 MethodInitationRequest 的多个拷贝。

关于c++ - Linux 上 RCF 的 boost 异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16649392/

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