Mail Archives: djgpp/1996/06/06/01:20:33
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 -