[wx-dev] Re: does wxWeakRef compile now everywhere

Robert Roebling robert at roebling.de
Mon Jun 2 02:51:40 PDT 2008


> It turned out that the compiler was not the culprit.  It was my
> configuration which turnes off quite a lot of features I don't need on
> the embedded target (I use --diable-all-features and explicitly enable
> what I need)
> 
> The message
> 
> > include/wx/weakref.h:74: error: invalid static_cast from type `wxWindow*' to type `wxTrackable*'
> 
> led me to trace the use of wxTrackable back to wx/event.h
> 
> The actual use of 'wxWeakRef' is inconsistent with '#if wxUSE_WEAKREF',
> so it is not possible to build wx when configured with --disable-weakref
> 
> I can certainly live with --enable-weakref, but IMHO either a couple of
> '#if wxUSE_WEAKREF' should be added at the appropriate places (which I
> haven't identified in detail) or it should not be an option at all.

Indeed, we should just disable disabling wxWeakRef,
  
  Robert



More information about the wx-dev mailing list