On 23 Jul 2007, at 18:19, Zaphod Beeblebrox wrote:

>  All seems ok, but if I try to substitute in myapp.cxx the original
> declaration "static Fl_File_Chooser *my_chooser = NULL;" with
> "static Fl_Picker *my_chooser = NULL;" the code miserably fails the
> g++ test with "error: expected initializer before ‘*’ token", while
> a simpler "Fl_Picker *my_chooser = NULL;" gives just a slightly
> different... "error: expected constructor, destructor, or type
> conversion before ‘*’ token". on the same line. Did I get something
> wrong? Thank you for your answers.

Don't really know what to suggest - sounds like a scoping issue. I've  
done this sort of thing successfully in the past so it ought to Just  
Work...
I assume you have defined your Fl_Picker class before you declare  
your my_chooser variable?



_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to