delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/09/21:06:44

Date: Wed, 10 Jul 1996 09:04:47 +0800 (GMT)
From: Orlando Andico <orly AT gibson DOT eee DOT upd DOT edu DOT ph>
To: Amy Williams <epic AT aros DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Problem with v2 of djgpp
In-Reply-To: <199607091946.NAA13275@mailhub.aros.net>
Message-ID: <Pine.SGI.3.93.960710090157.1581A-100000@gibson.eee.upd.edu.ph>
MIME-Version: 1.0

On Tue, 9 Jul 1996, Amy Williams wrote:

> Hi,
> 
> I tried to run gcc and got this error:
> ld.exe: cannot open -lgcc: No such file or directory (ENOENT)
> 
> I had done this command:
> gcc -o output hello.c
> 
> I am using version 2 of DJGPP.
> 
> Does anyone know how I can fix this problem?

The compiler can't find the libgcc.a file. While (I quote the gcc(1) man
page) "libgcc.a is not needed on most systems" the fact that your compiler
can't find it points to a misconfiguration problem.

So: read the FAQ, check your DJGPP environment variable, make sure your
DJGPP config file is pointing to the right places, or, if that doesn't
work, type

gcc -v -o output hello.c

and post the *entire* output of the compiler; it's directed to stderr so
you really should use redir.. for which you really should read the FAQ.

I suppose I'm just repeating myself.. :)

Cheers,

Orly.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019