gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

C/C++ > Error when Building a ROM under VisualC++

#26763 - turin - Sat Sep 25, 2004 10:31 am

I followed the Guide "NGGBA" to set up my MS VisualC++ IDE to use the "DevKitAgb" (I downloaded and unpacked these 5 files before).
Although I did exactly what the Guide says, it doesn't work!
When I try to Build a ROM of the ExampleCode that comes with this guide, the Build-Debugger prompts this message:

-------------------Configuration: CPPTest - Win32 Debug--------------------
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
as -I C:\GBA_Dev\GCC\arm-agb-elf\include -I C:\GBA_Dev\GCC\lib\gcc-lib\arm-agb-elf\3.0.2\include -mthumb-interwork C:\GBA_Dev\Projekte\CPPTest\boot.s -oboot.o
c:\GBA_DEV\GCC\BIN\arm-agb-elf-as.exe: *** Couldn't reserve space for cygwin's heap (0x2410000) in child, cygheap, Win32 error 487
NMAKE : fatal error U1077: 'as' : return code '0x1'
Stop.
Error executing nmake.

CPPTest.bin - 2 error(s), 0 warning(s)

I tried to compile the .cpp file calling the Compiler from command line, but I got the same error.
Can you help me? How can I fix this Problem, it seems as Windows does not allocate the memory the program needs?
Another Question: What's Cygwin? I remember of hearing the name before but I forgot wht it is.

#28245 - sasq - Thu Oct 28, 2004 1:42 pm

It might be that you have mismatch between the compiler executables and the cygwin dll. search & remove/rename all cygwin dlls escept the ones int the devkitagb directory.

(Cygwin is a "unix emulation" library that makes it easy to port stuff from unix to windows).