Couldn't reserve space for cygwin's heap,错误解决

如果编译出现“Couldn't reserve space for cygwin's heap, Win32 error 487” ,是因为msys-1.0.dll 出错,该文件会导致目录tools\MSYS\bin下的sh.exe,make.exe等不能运行.提示Couldn't reserve space for cygwin's heap, Win32 error 487 错误,

解决办法:
进入工程目录,使用命令工具
rebase -b 0x76000000 tools\MSYS\bin\msys-1.0.dll

可以解决该问题.原来是msys-1.0起始地址充突引起

全部完整的错误信息如下:

m.AllocationBase 0x0, m.BaseAddress 0x715B0000, m.RegionSize 0x460000, m.State 0x10000
F:\A9_FS_1207\2526_GEMINI_0828\Tools\MSYS\bin\sh.exe: *** Couldn't reserve space for cygwin's heap (0x715B0000 <0xC70000>) in child, Win32 error 487
0 [main] sh 7632 sync_with_child: child 7648(0x71C) died before initialization with status code 0x1
25422 [main] sh 7632 sync_with_child: *** child state waiting for longjmp

你可能感兴趣的:(Couldn't reserve space for cygwin's heap,错误解决)