Mail Archives: djgpp/2002/09/09/10:25:52
Viestissä Maanantai 09 Syyskuu 2002 14:47, rmsgrey kirjoitti:
> I recently (3/9) downloaded DJGPP having selected the
> following options from the zip picker:
> *UK, London
> *Build & run using DJGPP
> *Windows 95
> *Yes
> C,C++
> Rhide, Emacs(cut down version)
> Allegro
>
> Having followed the instructions in the documentation
> to install DJGPP in c:\djgpp, I attempted to write a
> "Hello World" program in Rhide to output using both
> printf() from stdio.h and std::cout from iostream the
> compiler consistently returned an error:
> "Cannot assign 65536 bytes having previously assigned
> XXXXXXX bytes" where XXXXXXX bytes varies but remains
> around 4Mb, occasionally going up as high as 6Mb.
> Further experimentation provoked the same error
> message attempting to compile the following:
>
> #include <iostream>
>
> int main()
> {return 0;}
>
> Having looked at various of the header files in
> djgpp/lang/... I suspect the problem is being caused
> by some includes in <string> as replacing iostream
> with string in the above provokes the same error.
> Also, including deque then algorithm always provokes
> it, algorithm then deque provokes it about half the
> time.
>
> The same error also occurs when I attempt to run make
> from a DOS prompt in the allegro directory.
>
> I have managed to compile successfully a short program
> including a moderately sized header file of my own,
> which in turn includes a second, short header file.
> Also, a "Hello World" program written only using
> printf() compiles and runs successfully.
>
> I am using Windows 95 on a machine with 16Mb RAM, and
> about 150Mb free hard disk space. The DPMI memory
> allocation is set to auto, but the problem remained
> when I set it to 16384.
Set it to 65535 and retry. It is also recommended to get more memory if
possible.
Andris
- Raw text -