Linking problem w. wxPython (core_wrap.o)

Yes, that is the problem. You must be the first one who has tried to link statically to wxPython modules otherwise this would have come up before. I can probably change the name of the C part of the wxGetApp function that wxPython implements so it doesn't conflict with the one created by IMPLEMENT_APP.

Or how about using wxEntryStart() ? I see it implemented in
<wxWidgets>/src/common/init.cpp.
To use it I guess I'll have to include it
#include "wx/init.h"

//IMPLEMENT_APP(MyApp)
//---replacing macro
//extern bool WXDLLIMPEXP_BASE wxEntryStart(int& argc, wxChar **argv);
//wxEntryStart(int argc=0, char *argv=NULL);//wxEntryStart(int& argc, wxChar **argv)

But my C++ skills being so crappy, how do I call it, or rather how do I initialize **argv?

wxEntryStart(0, NULL); <-- doesn't work

Vio

Vio wrote:

Yes, that is the problem. You must be the first one who has tried to link statically to wxPython modules otherwise this would have come up before. I can probably change the name of the C part of the wxGetApp function that wxPython implements so it doesn't conflict with the one created by IMPLEMENT_APP.

Or how about using wxEntryStart()

Nah, just change all occurrences of "wxGetApp" in your copy of core_wrap.cpp to "wxPyApp". It will still be accessible from Python as wx.GetApp, only the name of the C/C++ function will change.

ยทยทยท

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