Date: Mon, 6 Jul 1998 18:30:15 +0200 (MET DST) From: Gisle Vanem To: Blake McCurdy cc: djgpp AT delorie DOT com Subject: Re: linking huge project In-Reply-To: <6nqq28$qbu$2@News.Dal.Ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On 6 Jul 1998, Blake McCurdy wrote: > I have an incredibly big project ( 40, 45 object files ), and my dos > command line balks. It will take the first 125 chars or so, and then > complains that it cannot find the file that it created truncting my cmd > line. IE hand.o truncated into ha, linker complains cannot find "ha" no > such file or directoryEnonet. How do I get around this. I'm actually > making it into a libray, not linking. Use a response file. e.g: ar rvs @file.rsp where file.rsp contains a list of all the .o files. file.rsp can be generated automatically by make. OTOH, do something like: libfile.a: file.rsp ar rvs @file.rsp file.rsp: makefile echo $(OBJS) > $< BTW. Borland's make has the inline file-operator which AFAIK lacks in GNU make: libfile.a: ar rvs @&&| $(OBJS) | Anybody know how to accomplish the same with GNU-make? Gisle V.