gpt4 book ai didi

c++ - Gecode,使用 gecode.int.hh 编译程序时出错

转载 作者:搜寻专家 更新时间:2023-10-31 02:06:22 25 4
gpt4 key购买 nike

我为 VS 2017 安装了 Gecode 6.0。将目录添加到/lib 和/include。然后将 gecode/int.hh 包含到 Hello World 程序中。编译过程中出现了 3 个奇怪的错误:

错误 C2084 函数“void Gecode::cmb_hash(size_t &,::size_t)”已经有主体 ConsoleApplication3 c:\program files\gecode\include\gecode\support\hash.hpp 61

Error C2264“Gecode::cmb_hash”:函数定义或声明错误;函数未调用 ConsoleApplication3 c:\program files\gecode\include\gecode\support\hash.hpp 62

Error C2264“Gecode::cmb_hash”:函数定义或声明错误;函数未调用 ConsoleApplication3 c:\program files\gecode\include\gecode\int\extensional\dfa.hpp 100

有人知道如何消除这些错误吗?提前致谢。

最佳答案

好的,知道了。我已经安装了 x64 Gecode 版本,但为 x86 编译了我的程序。在 VS2017 中切换到 x64,现在一切正常。

关于c++ - Gecode,使用 gecode.int.hh 编译程序时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50415763/

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