From: Ryan Blazecka Newsgroups: comp.os.msdos.djgpp Subject: Re: Random numbers Date: Tue, 28 Jan 1997 17:09:32 -0800 Organization: BCTEL Advanced Communications Lines: 24 Message-ID: <32EEA34C.4476@bc.sympatico.ca> References: <5ck9gf$ft7$1 AT fizban DOT solace DOT mh DOT se> Reply-To: eblazecka AT bc DOT sympatico DOT ca NNTP-Posting-Host: nwmr01m02-30.bctel.ca Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Nils-Erik Svangård wrote: > > I resently downloaded DJGPP and was thrilled. > But I have some questions. > > *Why are my compiled files so large? > I've compiled a nice "little" starfield I've been working on. > To my suprise the *.exe file was over 1.8Mb, bad news if you have > a small hardrive. Can you decrease that value? > > *When I use delay(10); a warning message appears, it says error in > declaration int delay(...); but it's void delay(); in the help files. > > It would be nice if someone could help me. > /nisse About the size of your EXE, do you have any static arrays in there? If you do, change them to dynamic arrays (using pointers and malloc()). For some reason, DJGPP increases EXEs by the size of any static arrays. Also, use the -s switch on the command line. This will take out any debugging information from your EXE. Ryan Blazecka eblazecka AT bc DOT sympatico DOT ca