Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: David Rogers <predictivestatmech-Re5JQEeQqe8AvxtiuMwx3w <at> public.gmane.org>
Subject: Compile Error
Newsgroups: gmane.comp.lang.haskell.wxhaskell.devel
Date: Thursday 13th December 2012 05:58:09 UTC (over 4 years ago)
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
 
CD: 3ms