From: David R. <pre...@gm...> - 2012-12-13 05:58:16
|
Very recently, I installed wxc-0.90.0.4 and defeated a compile error building on the libgtk-3-dev package in Ubuntu (and a manually installed wxWidgets-2.9.4). The trouble started because gcc 4.6.3 errored out on a line: *_ref = NULL; claiming it didn't know what a wxBitmap was. This traces to /usr/local/include/wx-2.9/wx/gtk/bitmap.h : which included two definitions: wxBitmap( const char* const* bits ); wxBitmap(GdkPixbuf* pixbuf); I picked one by modifying line 159 of src/cpp/eljpen.cpp : to read EWXWEXPORT(void,wxPen_GetStipple)(void* self,wxBitmap* _ref) { #if defined(__WXGTK__) *_ref = wxBitmap((const char* const*)NULL); #else *_ref = *(((wxPen*)self)->GetStipple()); #endif } and the thing compiled. ~ David M. Rogers |