delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/10/13:29:41

Message-ID: <000901becaf1$6b302900$19c2ef9b@Intekom7546>
From: "Stefan Viljoen" <rylan AT intekom DOT co DOT za>
To: <djgpp AT delorie DOT com>
References: <3785CCB4 DOT DFC022EB AT netvision DOT net DOT il>
Subject: Re: question on DJGCC - ld
Date: Fri, 9 Jul 1999 23:35:03 +0300
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Reply-To: djgpp AT delorie DOT com

> My problem is that the compiling process goes perfectly fine,
> but when I try to exec the program I created, it breaks in the
> linking process, and displays:
>
>         ld.exe: cannot open -lgcc: No such file or directory (ENOENT)
>
>         Clearly both ld.exe and gcc.exe are working, but this is not the
> first archive that is not fund, but this time I wasn't able to find the
> actual file. The information given implies that is not suppost to be a
> File, but a option to call the linker. If this is true, the linker is not
> recognizing the parameters, and still is working!

You are specifying the command line parameters incorrectly (my best guess if
I look at the error message). If you have an "-lgcc" somewhere on your
command line, remove it and try again. You do not need a "-lgcc" on your
command line unless you are linking a library file called

libgcc.a

from your djgpp\libs directory,

This message courtesy of
RylanNet rylan AT intekom DOT co DOT za
http://home.intekom.com/rylan/
--
StarWars for ever!.

- Raw text -


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