Re: undefined reference to png_...

Fred Kiefer <[email protected]> Wed, 07 Mar 2007 12:24:14 +0100
Newsgroups gmane.comp.lib.gnustep.user
Message-ID <[email protected]>
Looks like your linker is not linking in the png library. Why this is
the case is hast to tell. You should build this application with "make
messages=yes" to see the full linker command.


Kendall Bell wrote:
> I can't seem to be able to compile any gui applications. During linking
> I get the following messages:
> 
> /usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined
> reference to `png_set_tRNS_to_alpha@PNG12_0'
> /usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined
> reference to `png_destroy_read_struct@PNG12_0'
> /usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined
> reference to `png_create_read_struct@PNG12_0'
> /usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined
> reference to `png_set_palette_to_rgb@PNG12_0'
> /usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined
> reference to `png_get_bit_depth@PNG12_0'
> /usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined
> reference to `png_set_read_fn@PNG12_0'
> /usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined
> reference to `png_read_image@PNG12_0'
> /usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined
> reference to `png_get_io_ptr@PNG12_0'
> /usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined
> reference to `png_error@PNG12_0'
> /usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined
> reference to `png_read_info@PNG12_0'
> /usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined
> reference to `png_get_color_type@PNG12_0'
> /usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined
> reference to `png_get_rowbytes@PNG12_0'
> /usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined
> reference to `png_get_valid@PNG12_0'
> /usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined
> reference to `png_create_info_struct@PNG12_0'
> /usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined
> reference to `png_get_channels@PNG12_0'
> /usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined
> reference to `png_get_image_height@PNG12_0'
> /usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined
> reference to `png_get_image_width@PNG12_0'
> /usr/lib/GNUstep/System/Library/Libraries/libgnustep-gui.so: undefined
> reference to `png_sig_cmp@PNG12_0'
> 
> 
> Would anyone know how to fix this?
> 
> 
> _______________________________________________
> Help-gnustep mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/help-gnustep
>