Date: Sun, 19 Nov 2000 00:22:02 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "Xavier Robitaille" Message-Id: <8011-Sun19Nov2000002202+0200-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 CC: djgpp AT delorie DOT com In-reply-to: (xavier DOT robitaille AT videotron DOT ca) Subject: Re: EMFILE error in DOS-6.22 References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Xavier Robitaille" > Newsgroups: alt.msdos,alt.msdos.programmer,comp.os.msdos.djgpp,comp.os.msdos.misc,comp.os.msdos.programmer > Date: Sat, 18 Nov 2000 17:01:53 -0500 > > ar rcs libfgl.a fastgl.o widgets.o msdos.o engine.o timer.o ... (long list > of .o) > > and it generates the following error : > > c:\DJGPP\BIN/ar.exe : engine.o : Too many open files (EMFILE) I have never seen such a message. How many .o files did you have, all together? > I understand that the linker (ar.exe) can not create enough file handles to > link the whole .o list. > Surely DOS allows the use of more than 4 file handes... You are assuming that, since engine.o is the 4th file in the list, ar.exe chokes after the forth handle. But this doesn't need to be so, ar.exe could have opened other files, and could have done more than one pass of the whole list. > I've already added the following line in my config.sys but it doesn't solve > my problem : > set FILES=70 Please read section 9.7 of the DJGPP FAQ list, it might give some clues (do you have SHARE.EXE installed?).