Mail Archives: djgpp/1997/01/29/08:00:15
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
- Raw text -