Mail Archives: djgpp/2006/03/27/01:02:03
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f
|
X-Trace-PostClient-IP: | 68.147.232.190
|
From: | Brian Inglis <Brian DOT Inglis AT SystematicSW DOT Invalid>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: collect2 failure to load libc.a
|
Organization: | Systematic Software
|
Message-ID: | <76ue22tdtb2n17bk25eiepfjk4hil676hc@4ax.com>
|
References: | <44274EE0 DOT 8050206 AT qut DOT edu DOT au>
|
X-Newsreader: | Forte Agent 1.93/32.576 English (American)
|
MIME-Version: | 1.0
|
Lines: | 52
|
Date: | Mon, 27 Mar 2006 05:47:54 GMT
|
NNTP-Posting-Host: | 64.59.135.176
|
X-Complaints-To: | abuse AT shaw DOT ca
|
X-Trace: | pd7tw2no 1143438474 64.59.135.176 (Sun, 26 Mar 2006 22:47:54 MST)
|
NNTP-Posting-Date: | Sun, 26 Mar 2006 22:47:54 MST
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
fOn Mon, 27 Mar 2006 12:33:04 +1000 in comp.os.msdos.djgpp, "R.
Hayward" <r DOT hayward AT qut DOT edu DOT au> wrote:
>I can't seem to find the source of the following problem. I've got two
>boxes running XP, both with the same installation of djgpp:
>On one, compiling and linking the file a.c works fine, on the other it
>seems collect2.exe can not open libc.a
>
>I repeated all this with v2.03 refresh and got the same results. Flummoxed!
>
>Open to any suggestions
>C:\Temp>gcc a.c
>c:/djgpp/bin/ld.exe: cannot find -lgcc
>collect2: ld returned 1 exit status
>
>C:\Temp>gcc a.c -Xlinker -L. -Xlinker --verbose > linker.log
>c:/djgpp/bin/ld.exe: cannot find -lc
>collect2: ld returned 1 exit status
>
>C:\Temp>dir
> Directory of C:\Temp
>27/03/2006 08:15 AM 71 a.c
>27/03/2006 09:13 AM 637,286 libc.a
>11/03/2006 08:59 PM 64,006 libgcc.a
>27/03/2006 12:06 PM 2,502 linker.log
>======================================linker.log========================================
>attempt to open c:/djgpp/bin/../lib/gcc/djgpp/4.10/libgcc.a succeeded
>(c:/djgpp/bin/../lib/gcc/djgpp/4.10/libgcc.a)unwind-dw2-fde.o
>attempt to open c:/djgpp/bin/../lib/gcc/djgpp/4.10/libc.a failed
>attempt to open c:/djgpp/bin/../lib/gcc/libc.a failed
>attempt to open c:/djgpp/lib/libc.a failed
>attempt to open c:/djgpp/lib/gcc/djgpp/4.10/libc.a failed
>attempt to open c:/djgpp/lib/libc.a failed
>attempt to open c:/djgpp/bin/../lib/gcc/djgpp/4.10/../../../libc.a failed
>attempt to open c:/djgpp/lib/libc.a failed
>attempt to open ./libc.a failed
>attempt to open c:/djgpp/bin/../lib/libc.a failed
Don't know why libraries would be installed in c:\Temp; try:
move /-y c:\Temp\lib*.a c:\djgpp\lib\gcc\djgpp\4.10\
or better drag and drop files from source to target above;
that will let you see if there are different sizes/versions.
--
Thanks. Take care, Brian Inglis Calgary, Alberta, Canada
Brian DOT Inglis AT CSi DOT com (Brian[dot]Inglis{at}SystematicSW[dot]ab[dot]ca)
fake address use address above to reply
- Raw text -