Mail Archives: djgpp/1996/07/09/21:06:44
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 -