如何在Windows下安装带有额外库的cabal包?

时间:2012-08-28 19:23:51

标签: windows haskell linker cabal

我尝试使用" 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 log output

我做错了什么?这些库看起来没有什么特别之处,那么我需要在Windows中做一些额外的步骤吗?

更新:从gecode.org下载的二进制文件是使用Visual Studio编译的,并且与gcc不兼容(有关根问题,请参阅this answer)。正如Stephen所建议的那样,我现在尝试使用MinGW / MSYS构建Gecode。

0 个答案:

没有答案
相关问题