Brian Tilley wrote:
> Hi Greg,
>
> Just been re-building my desktop again (problems unrelated to FLTK or VC++)
> and decided to check out my VC++ installation by rebuilding the latest 1.3
> version r8345.
>
> Got compilation errors in 3 functions in tree.cxx due to multiple
> initialization of item. In each case item is initialized at the top of the
> function and then initialized again in the for statement.
>
> The functions are cb_all_font_choice, cb_all_labelfgcolor_button and
> cb_all_labelbgcolor_button.
>
> In all cases, modifying the for statement to just assign item seems to work.
> i.e.
>
> for ( item=tree->first(); item; item = tree->next(item) ) {
Thanks -- yes, that non-ansi default is annoying.
Fixed in r8346.
A good description of this problem here:
http://vcfaq.mvps.org/lang/1.htm
Also, walking through this thread:
http://coding.derkeiler.com/Archive/C_CPP/comp.lang.cpp/2004-01/0534.html
..there's a lot of interesting back+forths on this topic.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk