On 2009-06-22, MacArthur, Ian (SELEX GALILEO, UK) 
<[email protected]> wrote:
>
>> > I wonder what is different in my test, from what you are 
>> seeing in your build?
>> >
>> >
>> 
>> maybe you did not use a Fl_Spinner ? Some widgets work 
>> fine. JanE
>
>
> Definitley Fl_Spinner... This fluid code:
>
> ------------
> # data file for the Fltk User Interface Designer (fluid)
> version 1.0109 
> header_name {.h} 
> code_name {.cxx}
> Function {} {open
> } {
>   Fl_Window {} {open
>     xywh {458 353 301 267} type Double visible
>   } {
>     Fl_Spinner {} {
>       label {spinner:} selected
>       xywh {100 46 85 38} box FLAT_BOX color 2 selection_color 5
> labelcolor 14 textcolor 15
>     }
>   }
> } 
> ------------
>
> Which gave this .cxx
>
> ------------
> // generated by Fast Light User Interface Designer (fluid) version
> 1.0109
>
> #include "spin-tst.h"
>
> int main(int argc, char **argv) {
>   Fl_Double_Window* w;
>   { Fl_Double_Window* o = new Fl_Double_Window(301, 267);
>     w = o;
>     { Fl_Spinner* o = new Fl_Spinner(100, 46, 85, 38, "spinner:");
>       o->box(FL_FLAT_BOX);
>       o->color((Fl_Color)2);
>       o->selection_color((Fl_Color)5);
>       o->labelcolor((Fl_Color)14);
>       o->textcolor(FL_SELECTION_COLOR);
>     } // Fl_Spinner* o
>     o->end();
>   } // Fl_Double_Window* o
>   w->show(argc, argv);
>   return Fl::run();
> }
> ------------
>
>
> I wonder...
> I'm just building this test using "fltk-config --compile", which does
> not select any particular build or warning options.
>
> Are you building from a Makefile? What compiler options are you passing?
> Maybe there is some interaction due to the compiler options that I don't
> see in my tests?
>
> Cheers,

sorry for the late answer,

yeah i am using a Makefile and some custom flags:
(i set these flags at configure time, not in the Makefile)

CXXFLAGS=-Wall -Wpointer-arith -Wcast-qual -Wcast-align 
-ansi -pedantic -march=i486 -mtune=i686

not sure if they all make sense for C++ but i use those as 
CFLAGS too.

OTOH, a friend of mine got the same error on his mingw 
installation (either stable or with gcc 4.4.0, i am not 
sure) when he tried to build prodatum. i also get the error 
in MacOS X with llvm-gcc-4.2:

ui.C:8225: error: invalid conversion from 'int' to 
'Fl_Color'
ui.C:8225: error:   initializing argument 1 of 'void 
Fl_Spinner::textcolor(Fl_Color)'

flags on MacOS X:
-O4 -arch i386 -arch ppc -mmacosx-version-min=10.4


odd, did you maybe compile with a changed Fl_Spinner.H ? :)

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

Reply via email to