delorie.com/archives/browse.cgi | search |
Path: | news.mv.net!uunet!nyc.uu.net!chi.uu.net!xmission!news-hog.berkeley.edu!ucberkeley!newsfeed.stanford.edu!sn-xit-03!supernews.com!sn-inject-01!not-for-mail |
From: | "Hax" <hax AT no-junk-please DOT haxware DOT co DOT uk> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | How can ld be used stand alone? |
Date: | Tue, 5 Sep 2000 00:09:19 +0100 |
Organization: | RemarQ http://www.remarQ.com |
Lines: | 26 |
Message-ID: | <8p1a77$sr5$1@supernews.com> |
NNTP-Posting-Host: | 213.1.39.24 |
X-Trace: | 968109095 LGTBT6QCL2718D501C uk21.supernews.com |
X-Complaints-To: | newsabuse AT remarq DOT com |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.50.4133.2400 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
Xref: | news.mv.net comp.os.msdos.djgpp:103175 |
Can anyone out there tell me how I might use ld as a stand alone linker - i.e. not use gcc as the linker. If I understand correctly, gcc simply calls ld with the correct command-line options. For example, if I had two files main.c and process.c and process.c made a call to printf, after compiling with gcc, using the -c flag, what would I need to include in the linker script. I've had a go at this, and assume that I need to include libc.a, but when using the command line: ld -o test.exe -Lt:\djgpp\lib -lt:\djgpp\lib\libc.a main.o process.o I get the error message: T:/DJGPP/BIN/ld.exe: cannot find -lt:\djgpp\lib\libc.a What am I doing wrong? Any help much appreciated. Hax -- Remove: no-junk-please. from e-mail address for direct reply
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |