www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/06/01:20:33

Date: Thu, 6 Jun 1996 08:18:27 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Daniel Vernon Bailey <bailey AT wpi DOT edu>
Cc: djgpp AT delorie DOT com
Subject: Re: Program too big to fit in memory
In-Reply-To: <Pine.OSF.3.93.960605112924.15083B-100000@reno.WPI.EDU>
Message-Id: <Pine.SUN.3.91.960606081305.27903B-100000@is>
Mime-Version: 1.0

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?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019