GCC在Windows上编译haskell程序时不工作 [英] GCC not working during compiling haskell programs on Windows
问题描述
我已经安装了Haskell Platform和Cygwin。其中一个依赖项是 time
,它在 cabal install
命令期间无法生成。
错误信息如下:
检查gcc ... C:\PROGRA 〜1 \HASKELL〜1 \826561〜1.1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
所以我用Cygwin下载了另外一个 gcc
,我想,会更好。
但是,这个其他问题提到Haskell平台现在使用MinGW评估者而不是Cygwin来运行GNU软件。
我在cabal configure
文件中进行了更改 gcc
的位置,但我仍然收到相同的错误信息(但是新位置 gcc
)。
所以我在这里有点困惑: gcc
的问题究竟是什么?对于如何继续构建我的软件,您有任何意见吗?
通过使用Stack修复(部分)。建设失败,但另一个原因,所以我会问另一个问题。
再次感谢。
I'd like to compile a Haskell project with a .cabal file under windows.
I have installed the Haskell Platform and Cygwin. One of the dependancies is time
, which fail to build during the cabal install
command.
The error message is the following:
checking for gcc... C:\PROGRA~1\HASKELL~1\826561~1.1\mingw\bin\gcc.exe
checking if the C compiler is working... no
configure error: C compiler cannot create executable
So I downloaded another gcc
withing Cygwin that, I suppose, will work better.
However, this other question mention that the Haskell platform now uses MinGW rater than Cygwin to run GNU software.
I changed in the cabal configure
file the location of gcc
, but I still get the same error message (but with the new location of gcc
).
So I'm a bit confused here: what is exactly the problem with gcc
? Do you have any inputs on how I could continue the building of my software?
Fixed (partially) by using Stack. Building is failing but for another reason, so I'll ask another question.
Thanks again.
这篇关于GCC在Windows上编译haskell程序时不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!