X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com Date: Mon, 30 Aug 2010 23:53:48 +0300 From: Eli Zaretskii Subject: Re: collect2 question In-reply-to: <201008302230.48568.juan.guerrero@gmx.de> X-012-Sender: halo1 AT inter DOT net DOT il To: Juan Manuel Guerrero Cc: djgpp AT delorie DOT com Message-id: <83occjkejn.fsf@gnu.org> References: <201008302230 DOT 48568 DOT juan DOT guerrero AT gmx DOT de> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: Juan Manuel Guerrero > Date: Mon, 30 Aug 2010 22:30:48 +0200 > > make.exe[3]: Entering directory `f:/t/tiff-3.9.4/contrib/dbs' > c:/djgpp-2.04/bin/sh.exe ../../libtool --tag=CC --mode=link gcc -std=gnu99 -g -O2 -Wall -W -o tiff-bi.exe tiff-bi.o ../../libtiff/libtiff.la -ljbig -ljpeg -lz -lm > libtool: link: gcc -std=gnu99 -g -O2 -Wall -W -o tiff-bi.exe tiff-bi.o -v ../../libtiff/_libs/libtiff.a -ljbig /dev/env/DJDIR/lib/libjpeg.a -lz -lm > Using built-in specs. > Target: djgpp > Configured with: /v204/gcc-4.44/configure djgpp --prefix=/dev/env/DJDIR --disable-nls --disable-werror --enable-languages=c,c++,fortran,objc,obj-c++,ada > Thread model: single > gcc version 4.4.4 (GCC) > COMPILER_PATH=c:/djgpp-2.04/bin/../libexec/gcc/djgpp/4.44/;c:/djgpp-2.04/bin/../libexec/gcc/;c:/djgpp-2.04/bin/ > LIBRARY_PATH=c:/djgpp-2.04/bin/../lib/gcc/djgpp/4.44/;c:/djgpp-2.04/bin/../lib/gcc/;c:/djgpp-2.04/lib/;c:/djgpp-2.04/lib/;c:/djgpp-2.04/bin/../lib/gcc/djgpp/4.44/../../../ > COLLECT_GCC_OPTIONS='-std=gnu99' '-g' '-O2' '-Wall' '-W' '-o' 'tiff-bi.exe' '-v' '-mtune=pentium' > c:/djgpp-2.04/bin/../libexec/gcc/djgpp/4.44/collect2.exe -o tiff-bi.exe c:/djgpp-2.04/lib/crt0.o -Lc:/djgpp-2.04/bin/../lib/gcc/djgpp/4.44 -Lc:/djgpp-2.04/bin/../lib/gcc -Lc:/djgpp-2.04/lib -Lc:/djgpp-2.04/lib -Lc:/djgpp-2.04/bin/../lib/gcc/djgpp/4.44/../../.. tiff-bi.o ../../libtiff/_libs/libtiff.a -ljbig /dev/env/DJDIR/lib/libjpeg.a -lz -lm -lgcc -lc -lgcc > c:/djgpp-2.04/bin/ld.exe: cannot find -lgcc > collect2: ld returned 1 exit status Can you add -Wl,-t to the compiler options? That should force the linker to print every input file as it processes them, and you might see which one of them causes this error.