X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Message-ID: <44288B52.2000607@qut.edu.au> Date: Tue, 28 Mar 2006 11:03:14 +1000 From: "R. Hayward" User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: collect2 failure to load libc.a References: <44274EE0 DOT 8050206 AT qut DOT edu DOT au> <76ue22tdtb2n17bk25eiepfjk4hil676hc AT 4ax DOT com> In-Reply-To: <76ue22tdtb2n17bk25eiepfjk4hil676hc@4ax.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Junkmail-Whitelist: YES (by domain whitelist at mail-router01.qut.edu.au) Reply-To: djgpp AT delorie DOT com 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" 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. > >