From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: RHIDE question Date: Mon, 18 Nov 1996 18:31:38 -0800 Organization: Three pounds of chaos and a pinch of salt Lines: 30 Message-ID: <32911C0A.5416@cs.com> References: <328B83A0 DOT 2143 AT dt DOT enel DOT it> <328C5482 DOT 2B06 AT Mathematik DOT tu-chemnitz DOT de> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp108.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Calvin French To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Calvin French wrote: > > > > it gives me an "OUT OF MEMORY". > > > FAQ of documentation say nothing, any suggestions ?. > > In TC I used to get this error every time I compiled, and I couldn't > figure out why, until I realized what was happening was I had an include > file which unwittingly included itself. What happens is the compiler keeps > opening that file and allocating virtual tables (or whatever, I'm not > really compiler-lingo-literate) until BOOM you reach the bottom of the > heap. If you have less than 4megs it might just be an honest memory > problem, but I have no problems compiling under the new RHIDE and I have > (only) 4megs... Not sure what the problem is but maybe I can save you some > hassle... That problem cannot happen with the DJGPP distribution includes, because they use defines to prevent themselves from being included more than once. Also, if the preprocessor does indeed keep opening the same file multiple times, your system should run out of file handles long before it runs out of memory... -- John M. Aldrich, aka Fighteer I -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS d- s+:- a-->? c++>$ U@>++$ p>+ L>++ E>+ W++ N++ o+ K? w(---) O- M-- V? PS+ PE Y+ PGP- t+(-) 5- X- R+ tv+() b+++ DI++ D++ G e(*)>++++ h!() !r !y+() ------END GEEK CODE BLOCK------