X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Sun, 12 Dec 2004 06:55:58 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-ID: <01c4e007$Blat.v2.2.2$0453a500@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2 In-reply-to: (message from Dian Yin on Sun, 12 Dec 2004 11:31:59 +0800 (CST)) Subject: Re: Excuse me, why can't I run DJGPP properly? 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 > Date: Sun, 12 Dec 2004 11:31:59 +0800 (CST) > From: Dian Yin > > Every time I try to use DJGPP, I start the computer and download it from > the internet, and extract it using PKUNZIP. Sometimes I extract them to > d:\dj\, sometimes to d:\djgpp. I think that doesn't matter. It doesn't matter as long as you point the DJGPP environment variable to the right place. Also, for the purposes of finding the problem, please try to be consistent, as it makes things easier. > > > d:/djgpp/bin/../libexec/gcc/djgpp/3.43/collect2.exe d:/djgpp/lib/crt0.o -Ld:/djgpp/bin/../lib/gcc/djgpp/3.43 -Ld:/djgpp/bin/../lib/gcc -Ld:/djgpp/lib -Ld:/djgpp/lib/gcc/djgpp/3.43 -Ld:/djgpp/bin -Ld:/djgpp/lib -Ld:/djgpp/bin/../lib/gcc/djgpp/3.43/../../.. -Ld:/djgpp/lib d:/djgpp/tmp/cckJjnsr.o -lgcc -lc -lgcc -Tdjgpp-x.djl > > > d:/djgpp/bin/ld.exe: cannot find -lgcc > > > > Didn't you say it complained about -lc, not -lgcc? > > I tested that, when I simply type "gcc -v hello.c", it complains about > -lc, and when I type "redir -e hello.out gcc -v hello.c", it complains > about -lgcc. Then I'd suspect a problem with free handles. Please read section 9.7 of the DJGPP FAQ list and try to enlarge the number of handles using the methods suggested there. Then see if that makes your problem go away.