From: rkarthick AT gmx DOT net (R.Karthick) Newsgroups: comp.os.msdos.djgpp Subject: make + ld problem Date: 2 Sep 2003 08:04:28 -0700 Organization: http://groups.google.com/ Lines: 68 Message-ID: <8c7b1c74.0309020704.26e80cf@posting.google.com> NNTP-Posting-Host: 220.226.17.33 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1062515068 8478 127.0.0.1 (2 Sep 2003 15:04:28 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: 2 Sep 2003 15:04:28 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi!!! I am using a make file for creating a bin file out of many C files. I am using win2k cmd shell with djpp gcc version 3.1 installed with GNU Make version 3.79. The version of ld is 2.13. My src for the makefile is ---------- objects = kernel32.o pic.o stdio.o keyboard.o gdt.o string.o idt.o asm_c.o screen.o writexy.o login.o allobjects = $(objects) asm.o header = include/stdio.h \ include/pic.h \ include/gdt.h \ include/types.h \ include/string.h \ include/idt.h \ include/asm.h \ include/screen.h \ include/keyboard.h \ include/keydefs.h \ include/login.h \ include/writexy.h kernel32.bin : $(objects) asm.o ld -Ttext=0x9000 -o kernel32 $(allobjects) -e 0x0 objcopy -R .note -R .comment -S -O binary kernel32 kernel32.bin $(objects) : $(header) asm.o : nasm -f coff asm.asm -------------- Now if i run "make" it returns the error make: execvp: ld: Invalid argument make: *** [kernel32.bin] Error 127 I removed the login.o from the compilation( objects variable ) and added the functions from login.c in kernel32.c, so that it will be included in kernel32.o, and the binary file gets created smoothly in that way. Does ld have any maximum number of files limitation which can be included to it from the command line or the make file?? I tried to remove all the .o files in the directory and started a fresh make, and even that didnt seem to work. I am really stuck with this.!!! Any help will be really appreciated. Regards, R Karthick