From: Andris Organization: Pavenis To: djgpp AT delorie DOT com, rmsgrey Subject: Re: problem with include files in gpp3.1 Date: Mon, 9 Sep 2002 14:24:33 +0300 User-Agent: KMail/1.4.7 References: <20020909114740 DOT 14615 DOT qmail AT web10106 DOT mail DOT yahoo DOT com> In-Reply-To: <20020909114740.14615.qmail@web10106.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Message-Id: <200209091424.33850.pavenis@lanet.lv> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g89EMYn11793 Reply-To: djgpp AT delorie DOT com 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 > > 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 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