Article View: news.software.nntp
Article #24044Re: compiling problem.
From: Matt Casters
Date: Fri, 05 Dec 1997 00:00
Date: Fri, 05 Dec 1997 00:00
52 lines
2030 bytes
2030 bytes
Jesse Rivera wrote: > > I'm not sure if this is a unix, news, or gcc problem but hopefully > someone has seen this: > > Building subst... > cc -o subst subst.c > collect2: cannot find `ld' > collect2: ld returned 1 exit status > *** Error code 1 > make: Fatal error: Command failed for target `c' > > I can't seem to get past this. What is 'ld' and 'collect2'? Any > assistance would be greatly appreciated. > > -Jesse Type which ld If ld can not be found, you should include ld in your path. Since it's gcc you're talking about it should reside somewhere in /usr/local/ (find /usr/local -name ld -print) $ man ld ld Command Purpose Links object files. Description The ld command, also called the linkage editor or binder, combines object files, archives, and import files into one output object file, resolving external references. It produces an executable object file that can be run. In addition, if you specify the ld command without the -s flag, you can use the output file as an InputFile parameter in another call to the ld command. By default, the ld command creates and places its output in the a.out file. HTH, -- Matt Casters <matt.casters@volvo.be> MemodID: VEDA.TN91217 Unix System Administrator Volvo Data Belgium, Eksaarderijweg 188, 9041 Oostakker Tel: +32-9/255.60.76 (temp.) FAX: +32-9/255.60.83
Technical Details
Message-ID:
<34880B3D.629B@volvo.be>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.admin.mbox.zip!not-for-mailReferences:
<34861B45.4ACB8384@inow.com>Show Full Headers
Complete Article Headers
Message-ID: <34880B3D.629B@volvo.be> Subject: Re: compiling problem. Date: Fri, 05 Dec 1997 00:00:00 +0000 From: Matt Casters <Matt.Casters@volvo.be> References: <34861B45.4ACB8384@inow.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.admin.mbox.zip!not-for-mail X-Deja-AN: 295470510 Distribution: inet Organization: Volvo Data Belgium Reply-To: Matt.Casters@volvo.be Newsgroups: comp.unix.admin,gnu.gcc.help,news.software.nntp