Date: Thu, 6 Jun 1996 08:18:27 +0200 (IST) From: Eli Zaretskii To: Daniel Vernon Bailey Cc: djgpp AT delorie DOT com Subject: Re: Program too big to fit in memory In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 5 Jun 1996, Daniel Vernon Bailey wrote: > I'm getting the error Program too big to fit in memory when I attempt to > run any applications I compile with djgpp 2.0 with no patches. The two > > ld -Tdjgpp.lnk -o dss.exe *.o libgmp.a libc.a libm.a libpc.a libgcc.a It is usually a bad idea to run ld directly, as chances are you don't construct its complex command line correctly. Just call gcc to do the job and forget about your pains: gcc -o dss.exe *.o -lgmp (and you can forget about all those standard libraries as a bonus, too). Btw, I think the real problem in your ld command line is that you forgot crt0.o which is the startup file and without which DOS tries to load dss.exe as real-mode DOS program and of course fails. But why bother to pursue this matter, when a correct solution is so much easier and straightforward?