Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Mailer: 21.1 (patch 12) "Channel Islands" XEmacs Lucid (via feedmail 8 I) To: Cygnus Subject: undefined reference to `png_write_destroy' when linking with libpng-1.0.8-1.tar.gz from Charles Wilson From: "Dr. Volker Zell" Date: 14 Sep 2000 13:01:03 +0200 Message-ID: Lines: 38 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hi System: WinNT 4.0/SP3 - 196 MB Ram Cygwin 1.1.4 - everything mounted binary, - CYGWIN = tty title binmode ntea nontsec plus all the contrib libraries from Charles Wilson. I get the following when compiling o netpbm-9.8 - http://download.sourceforge.net/netpbm/ gcc -c -I.. -I../ppm -I../pgm -I../pbm -I../shhopt -I/usr/include -I/usr/include -I/usr/include -I../urt -pedantic -O3 -Wall -Wno-uninitialized -o pnmtopng.o pnmtopng.c gcc -o pnmtopng pnmtopng.o `../libopt libpnm.a ../ppm/libppm.a ../pgm/libpgm.a ../pbm/libpbm.a ` \ -L/usr/lib -lpng -lz -lm pnmtopng.o(.text+0x39ce):pnmtopng.c: undefined reference to `png_write_destroy' collect2: ld returned 1 exit status make[1]: *** [pnmtopng] Error 1 and also the following errors when compiling o gimp-1.0.4 - ftp://ftp.gimp.org/pub/gimp/v1.0/v1.0.4/ /bin/sh ../../libtool --mode=link gcc -g -O2 -Wall -s -o png png.o ../../libgimp/libgimpui.la ../../libgimp/libgimp.la -L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -lgmodule -lglib -lXext -lX11 -lm -lipc -lpng -lz -lm gcc -g -O2 -Wall -s -o png png.o ../../libgimp/.libs/libgimpui.a ../../libgimp/.libs/libgimp.a -L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -lgmodule -lglib -lXext -lX11 -lm -lipc -lpng -lz -lm png.o: In function `load_image': /gnu/src/gimp-1.0.4/plug-ins/png/png.c:601: undefined reference to `png_read_destroy' png.o: In function `save_image': /gnu/src/gimp-1.0.4/plug-ins/png/png.c:794: undefined reference to `png_write_destroy' collect2: ld returned 1 exit status Both symbols are defined in the static libpng.a library but not in the libpng.dll.a. Any hints why ? Ciao Volker -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com