gcc 2.03 gives cc1.exe :"out of memory alloction" error while compilation with 32-bit windows 7 OS

1.6k Views Asked by At

I am using djgpp 2.03 version and 32-bit windows 7 OS with 3 GB RAM, but while compiling the c source code, I am getting the error "cc1.exe: out of memory allocating 65536 bytes after a total of 52828808 bytes" same source code is getting correctly compiled with the windows xp system with same utility(djgpp 2.03).I tried by increasing virtual memory space to few GB but didn't work,please help me to out of this issue......

Thanks and Best Regars Rupesh thakur

2

There are 2 best solutions below

1
Šimon Tóth On

In general, if you want to run dos programs in Windows, you should consider virtualization.

Yes, some dos programs will work even without virtualization, but some won't. This seems to be an example of the later.

0
Laurynas Biveinis On

Try with (unfortunately unreleased) version 2.04 of DJGPP. Follow these instructions. This version has much better compatibility with recent versions of Windows, where "recent" means Windows 2000 and above. (I cannot believe I am saying this in 2010).