Linking problem w. wxPython (core_wrap.o)

Greetings,
I'm trying to embed the wxPython bindings in a little wxWidgets app, alongside an embedded Python interpreter, and a little test code. Compilation goes smoothly, but during linking, I get a lot of

core_wrap.o: In function `wxPyConstructObject(void *, char const *, int)':
/c/d/wx/wx/./gtk/core_wrap.cpp:449: undefined reference to `SWIG_Python_NewPointerObj'
core_wrap.o: In function `wxPyConvertSwigPtr(_object *, void **, char const *)':
/c/d/wx/wx/./gtk/core_wrap.cpp:463: undefined reference to `SWIG_Python_ConvertPtr'
core_wrap.o: In function `wxPyMakeSwigPtr(void *, char const *)':
/c/d/wx/wx/./gtk/core_wrap.cpp:482: undefined reference to `SWIG_Python_PackData'
core_wrap.o: In function `wxSize_Get(wxSize *)':
/c/d/wx/wx/./gtk/core_wrap.cpp:673: undefined reference to `wxPyBeginBlockThreads(void)'
/c/d/wx/wx/./gtk/core_wrap.cpp:677: undefined reference to `wxPyEndBlockThreads(bool)'
... and on and on

Following is my linking command. Could someone point me to what I am missing:
(for the record: "b1.o" is my main test file, which is the generic "minimal" wxWidgets app, "exemple.o" is the generic SWIG "shadow class" example, which incidently also gets embedded without much fuss; the problem come from "core_wrap.o", which seems unhappy about something).

g++ -g -o b1 b1.o example.o example_wrap.o calendar_wrap.o controls_wrap.o core_wrap.o gdi_wrap.o grid_wrap.o html_wrap.o misc_wrap.o windows_wrap.o wizard_wrap.o /usr/local/lib/python2.3/config/libpython2.3.a -lnsl -ldl -lreadline -ltermcap -lieee -lpthread -lutil -lm `wx-config --libs`

Much obliged,
Vio

Vio wrote:

Greetings,
I'm trying to embed the wxPython bindings in a little wxWidgets app, alongside an embedded Python interpreter, and a little test code. Compilation goes smoothly, but during linking, I get a lot of

core_wrap.o: In function `wxPyConstructObject(void *, char const *, int)':
/c/d/wx/wx/./gtk/core_wrap.cpp:449: undefined reference to `SWIG_Python_NewPointerObj'
core_wrap.o: In function `wxPyConvertSwigPtr(_object *, void **, char const *)':
/c/d/wx/wx/./gtk/core_wrap.cpp:463: undefined reference to `SWIG_Python_ConvertPtr'
core_wrap.o: In function `wxPyMakeSwigPtr(void *, char const *)':
/c/d/wx/wx/./gtk/core_wrap.cpp:482: undefined reference to `SWIG_Python_PackData'
core_wrap.o: In function `wxSize_Get(wxSize *)':
/c/d/wx/wx/./gtk/core_wrap.cpp:673: undefined reference to `wxPyBeginBlockThreads(void)'
/c/d/wx/wx/./gtk/core_wrap.cpp:677: undefined reference to `wxPyEndBlockThreads(bool)'
... and on and on

These are in libpy.c and helpers.cpp.

ยทยทยท

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