我为VS 2017安装了Gecode 6.0。将目录添加到/lib和/include。然后包括到Hello程序的gecode/int.hh。在编译过程中,出现了三个奇怪的错误:
错误C2084函数"void Gecode::cmb_hash(size_t &,::size_t)“已经有一个body ConsoleApplication3 c:\Programfiles\gecode\include\gecode\support\hash.hpp 61
错误C2264 "Gecode::cmb_hash":函数定义或声明中的错误;函数不称为ConsoleApplication3 c:\Programfiles\gecode\include\gecode\support\hash.hpp 62
错误C2264 "Gecode::cmb_hash":函数定义或声明中的错误;函数未调用ConsoleApplication3 c:\program 100
有谁知道如何消除这些错误吗?提前谢谢。
发布于 2018-05-18 17:36:34
好了,明白了。我已经安装了x64 Gecode版本,但是为x86编译了我的程序。切换到VS2017中的VS2017,现在一切都正常了。
https://stackoverflow.com/questions/50415763
复制相似问题