Page 1 of 1

LD limit?

Posted: Tue Mar 04, 2014 10:32 pm
by BASICFreak
I seem to have hit a limit on the max object files on LD here is a copy of CMD minus the path

Code: Select all

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

cd \current\PMODE\KERNEL

LD -T LINK.LD -o B:\KERNEL.BIN START.O MAIN.O TIMER.O STDIO.O STRING.O GDT.O INT.O CMD.O KEYBOARD.O MATH.O FLOPPY.O CMOS.O DMA.O
The system cannot execute the specified program.

LD -T LINK.LD -o B:\KERNEL.BIN START.O MAIN.O TIMER.O STDIO.O STRING.O GDT.O INT.O CMD.O KEYBOARD.O MATH.O FLOPPY.O CMOS.O

LD -T LINK.LD -o B:\KERNEL.BIN START.O MAIN.O TIMER.O STDIO.O STRING.O GDT.O INT.O CMD.O KEYBOARD.O MATH.O FLOPPY.O CMOS.O dma.o
The system cannot execute the specified program.

LD -T LINK.LD -o B:\KERNEL.BIN START.O MAIN.O TIMER.O STDIO.O STRING.O GDT.O INT.O CMD.O KEYBOARD.O MATH.O FLOPPY.O DMA.O
MAIN.O:MAIN.c:(.text+0x56a): undefined reference to `_readCMOS'
MAIN.O:MAIN.c:(.text+0x648): undefined reference to `_CMOS_Floppy_Decode'
MAIN.O:MAIN.c:(.text+0x661): undefined reference to `_CMOS_Floppy_Decode'

LD -T LINK.LD -o B:\KERNEL.BIN START.O MAIN.O TIMER.O STDIO.O STRING.O GDT.O INT.O CMD.O KEYBOARD.O MATH.O FLOPPY.O CMOS.O kern.o
The system cannot execute the specified program.

LD -T LINK.LD -o B:\KERNEL.BIN START.O MAIN.O TIMER.O STDIO.O STRING.O GDT.O INT.O CMD.O KEYBOARD.O MATH.O FLOPPY.O CMOS.O wtf.o
The system cannot execute the specified program.

LD -T LINK.LD -o B:\KERNEL.BIN START.O MAIN.O TIMER.O STDIO.O STRING.O anything.o GDT.O INT.O CMD.O KEYBOARD.O MATH.O FLOPPY.O CMOS.O
The system cannot execute the specified program.
seems I am unable to add any more files, and no manuals say LD has a limit. windows XP has 2048 char limit(source unverified) so seems to be with LD

so how do I get around this?

I got around this last time by merging code and I cannot keep doing that!

Re: LD limit?

Posted: Wed Mar 05, 2014 12:39 am
by Combuster
You violated point 1 of the Posting Checklist.

I'm guessing it's DJGPP because of the DOS limit on commands.