Date: Fri, 16 Jan 1998 16:37:58 -0800 (PST) Message-Id: <199801170037.QAA07236@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: jwlo AT ms11 DOT hinet DOT net, djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: DJGPP linking problem. Precedence: bulk At 11:22 1/16/1998 +0800, Doug Lo wrote: >Hi, > >I'm a beginner for using DJGPP. I want to compile C++ programs, I >downloaded >bnu27b.zip, csdpmi3b.zip, djdev201.zip, gcc2721b.zip, gdb416b.zip, >gpp2721b.zip, lgp271b and txi390b.zip. > >Then I create directory named DJGPP in D:\ and I also set >set djgpp=d:\djgpp\djgpp.evn >set path=d:\djgpp\bin;%path% > >When I compile C++ prgrams(test.cc), run 'gxx -o test.exe test.cc', >then it appears an error message as below: >d:/djgpp/bin\ld.exe: cannot open -lgpp: too many open files in >system(ENFILE) > >Would anyone tell me how to solve this problem? Edit your CONFIG.SYS file and look at the line `FILES=XXX'. Increase the number until the problem goes away. I have FILES=60 and have no trouble, but don't go overboard as this will decrease your DOS memory somewhat. If you are running under Windows, switching to DOS may work. If you are using Windows 95, I have no idea whether this works. If you have no `FILES=' line, try adding one with a value of 40 or so. Nate Eldredge eldredge AT ap DOT net