Linking problem w. wxPython (core_wrap.o)

monolib_imagpng.o(.text+0x9a6): undefined reference to `png_set_error_fn'
monolib_imagpng.o(.text+0x9c0): undefined reference to `png_set_read_fn'
...
/q/wxPy/GTKASCII/lib/libwx_gtk2d-2.5.a(monolib_imagtiff.o): In function `wxTIFFHandler::SaveFile(wxImage *, wxOutputStream &, bool)':
monolib_imagtiff.o(.text+0x8c9): undefined reference to `TIFFScanlineSize'
...
----------------------------------------

So, monolib comes from the main wx library.
/q/wxPy/GTKASCII/lib/libwx_gtk2d-2.5.a(monolib_unzip.o)
But I don't quite understand what it's complaining about. Seems like some image-related includes or helper files it doesn't see. Yesterday, browsing through the wxPy sources, I made the wrond assertions, took a wild guess and mistakingly included the wx libs twice, as you pointed out. Ok, since GTKASCII installation build without a hitch, I'll have a look at the config.log in my GTKASCII-build directory for more ideas. If you have any hints, please share.

Related question: so all libs in wxPy/GTKASCII-build/lib/libwxjpegd.a and so on
are merged into libwzx_gtk2d-2.5.a ?

Back to the undefined references, specifically including additional header files:

···

-----------------------------
g++ -g -o b1 b1.o example.o example_wrap.o core_wrap.o libpy.o helpers.o drawlist.o `wx-config --libs` -D__WXGTK__ -DwxUSE_BASE=1 -D__WXDEBUG__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/q/wxPy/src/tiff -I/q/wxPy/src/jpeg -I/q/wxPy/src/png -I/q/wxPy/src/zlib/zlib.h -I/q/wxPy/src/expat/lib -I/q/wxPy/src/../include /usr/local/lib/python2.3/config/libpython2.3.a -lnsl -ldl -lreadline -ltermcap -lieee -lpthread -lutil -lm
------------------------------
from src doesn't seem to solve anything.
Totally puzzled...
Vio

Vio,

Sorry I can't help, but when you get this all worked out, it would be great if you could put a HowTo in the Wiki!

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Vio wrote:

Related question: so all libs in wxPy/GTKASCII-build/lib/libwxjpegd.a and so on
are merged into libwzx_gtk2d-2.5.a ?

I don't know. It's been a long time since I built the monlithic lib, and I never build the static libs...

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!