Mail Archives: djgpp/2006/03/27/20:04:22
Thanks All. The problem was that FILES was not set high enough.
Brian Inglis wrote:
> 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.
>
>
- Raw text -