| delorie.com/archives/browse.cgi | search |
| From: | Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Help with linking |
| Date: | Fri, 25 May 2001 22:19:37 +0100 |
| Lines: | 29 |
| Message-ID: | <3B0ECC69.A98EE83C@phekda.freeserve.co.uk> |
| References: | <5PzP6.1271$bt DOT 5546 AT newsfeed DOT slurp DOT net> |
| NNTP-Posting-Host: | modem-5.californium.dialup.pol.co.uk |
| Mime-Version: | 1.0 |
| X-Trace: | news5.svr.pol.co.uk 990826920 8394 62.136.68.133 (25 May 2001 21:42:00 GMT) |
| NNTP-Posting-Date: | 25 May 2001 21:42:00 GMT |
| X-Complaints-To: | abuse AT theplanet DOT net |
| X-Mailer: | Mozilla 4.77 [en] (X11; U; Linux 2.2.17 i586) |
| X-Accept-Language: | de,fr |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Hello.
Luiz Rafael Culik Guimaraes wrote:
> Here is the output
> c:\harb\source\compiler\w32\rsxnt> gcc -v @__link__.tmp
> Reading specs from c:/djgpp/lib/gcc-lib/djgpp/2.953/specs
> gcc driver version 2.95.3 20010315/djgpp (release)
> c:/djgpp/lib/gcc-lib/djgpp/2.953/collect2.exe -o harbour.exe
> c:/djgpp/lib/crt0.o -Lc:/djgpp/lib -Lc:/djgpp/lib/gcc-lib/djgpp/2.953 -Lc:/d
> jgpp/bin -Lc:/djgpp/lib harboury.o cmdcheck.o genc.o genhrb.o genjava.o
> genobj32.o hbfunchk.o hbgenerr.o hbpcode.o hbusage.o hbfix.o hbident.o
> expropta.o exproptb.o exproptc.o hbslex.o
> harbour.o -lpp -lcommon -lgcc -lc -lgcc -Tdjgpp.djl
> c:/djgpp/bin/ld.exe: cannot find -lpp
> collect2: ld returned 1 exit status
>
> The pp.a and common.a are both in c:/djgpp/lib
That is your problem - '-lpp' will look for libpp.a, so you need to rename
the libraries like this:
c:/djgpp/lib/pp.a -> libpp.a
c:/djgpp/lib/common.a -> libcommon.a
HTH, bye,
--
Richard Dawe
http://www.phekda.freeserve.co.uk/richdawe/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |