1

我正在尝试使用“RuntimeGecode”标志安装monadiccp,以便它包含 Gecode 库:

cabal install monadiccp --flags="RuntimeGecode Debug" --extra-lib-dirs="D:\Programme\Gecode\lib;d:\programme\Gecode\bin" --extra-include-dirs=D:\Programme\Gecode\include\

但这不起作用,它失败了:

ld.exe: cannot find -lgecodesupport
ld.exe: cannot find -lgecodeset

等等...查看-v3 日志输出

我究竟做错了什么?这些库似乎没有什么特别之处,所以我需要在 Windows 中执行一些额外的步骤吗?

更新:可从 gecode.org 下载的二进制文件是使用 Visual Studio 编译的,并且与 gcc 不兼容(有关根本问题,请参阅此答案)。正如斯蒂芬所建议的那样,我现在将尝试使用 MinGW/MSYS 从源代码构建 Gecode。

4

0 回答 0