[wx-dev] Re: CVS: [VZ] wxWindows/src/gtk dcclient.cpp, 1.252, 1.253

Paul Cornett pc-wx at bullseye.com
Mon Apr 16 16:49:58 PDT 2007


Francesco Montorsi wrote:
> I agree for 2.8 branch the best solution could be Mart's workaround... 
> but I wonder just a thing: what about e.g. sections
> 
> #ifdef __WXGTK210__
>  if (!gtk_check_version(2,10,0))
>  {
>     ...use of GTK+ 2.10 symbols here...
>  }
> #endif
> 
> doesn't they create a dependency on newest GTK+ versions, too?

Not if the shared library mechanism uses lazy binding, which they 
normally do. The symbol won't be resolved until the first time it is 
used, and it won't be used if the version check fails.





More information about the wx-dev mailing list