This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

undefined reference to `png_write_destroy' when linking with libpng-1.0.8-1.tar.gz from Charles Wilson


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@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]