delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/09/20:15:28

From: "DeHackEd" <not DOT given AT out>
Newsgroups: comp.os.msdos.djgpp
References: <3785CCB4 DOT DFC022EB AT netvision DOT net DOT il>
Subject: Re: question on DJGCC - ld
Lines: 45
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Message-ID: <Sxmh3.1476$Pd2.6192@cabot.ops.attcanada.net>
Date: Fri, 09 Jul 1999 13:11:14 GMT
NNTP-Posting-Host: 142.194.222.198
X-Trace: cabot.ops.attcanada.net 931525874 142.194.222.198 (Fri, 09 Jul 1999 13:11:14 GMT)
NNTP-Posting-Date: Fri, 09 Jul 1999 13:11:14 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

>         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!

-lgcc is not an error with GCC. It is an error that a file cannot be found.
Specifically, LIB[name].A, so libgcc.a. -lgcc is a command to add a library,
and you may use it yourself - it's partly a command-line option and partly a
filename.

>
PATH=C:\DJGPP\LIB;C:\DJGPP\TMP;C:\DJGPP\BIN;C:\DJGPP\LIB\GCC-LIB\DJGPP\2.81;
C:\WINN;C:\WINN\COMMAND
> DJGPP=C:\Djgpp\DJGPP.ENV
> CMDLINE=ld -v



Ummm. just wondering, why did you add all these GCC directories to the path.
Only the "BIN" directory needs to be added. In fact, all (er, most) of the
others don't have executable files in them at all.

There is only one possability that I can think of for this fault. The most
likely answer is that you are using outdated tools. Did you unzip
GCC2721B.ZIP as one of your installation files, or did you take GCC281B.ZIP?
281 uses a new directory storage scheme which appears to have ruined the
previous version of GCC. The LIB file is stored under that long LIB\GCC-LIB
directory and old versions of GCC never bothered to look there, hence the
error. If this is your problem, run the following from C:\Djgpp to erase the
first version (if you get an error, it should be ok to skip this step):

rm @manifest\gcc2721b.mft

Download V2GNU/GCC281B.ZIP from your FTP site and unzip it like the rest of
the ZIPs.

--
DeHackEd

No emails please, the address is fake.


- Raw text -


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