开发者

Out-of-memory error when building wxWidgets

开发者 https://www.devze.com 2023-03-15 05:27 出处:网络
I\'m currently trying to build wxHaskell as described in the Haskell wiki here. Unfortunately I always get the following error message after running the mingw32-make command:

I'm currently trying to build wxHaskell as described in the Haskell wiki here. Unfortunately I always get the following error message after running the mingw32-make command:

c:/mingw/bin/.../lib/gcc/mingw2/4.5.2/../../../../mingw32/bin/ld.exe: out of memory allocation 31395840 bytes

collect2: ld returned 1 exit status

mingw32-make: * [....\lib\gcc_dll\wxmsw28u_gcc_custom.dll] Error 1

I know that this is not directly a wxHaskell problem, but it arises only if I use the compiler option "MONOLITHIC=1", which wxHaskell seems to require. So maybe one of the other wxHaskell users kn开发者_运维知识库ows a solution to this problem.

Since my system specs and the compilers might be of interest, here they are:

  • Windows 7
  • 4 GB RAM
  • Haskell Platform 2011.2.0.1
  • MSYS 1.0.11
  • Automated MinGW installer from here

The strange thing is, that I got it to compile, before I reinstalled windows the other week. Unfortunately I don't know if I was using another MinGW version then or if something else was different.

EDIT: I could solve the problem using TDM GCC


Just to answer this question: Using TDM GCC solves the problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号