> thanks for your answer.
The version is 1.1.7. platform and toolchain is vc6.0 and windows xp.
link error is:||Compiling...
practice.cxx
D:\code\FLTK\practise\practice.cxx(13) : error C2275: 'Fl_Timeout_Handler' :
illegal use of this type as an expression
c:\documents and
settings\user\desktop\fltk-1.1.7-source\fltk-1.1.7\fl\fl.h(48) : see
declaration of 'Fl_Timeout_Handler'
Error executing cl.exe.||
here i just use a simple example to get this straight:
#include<FL/Fl.H>
#include<FL/Fl_Window.H>
#include<FL/Fl_Button.H>
#include<Fl_Timer.H>
int main()
{
Fl_Window * win=new Fl_Window(400,400,500,500,"practice");
win->begin();
Fl_Button * but=new Fl_Button(100,100,100,30,"ServeOnOff");
Fl_Timer *timer=new Fl_Timer(FL_VALUE_TIMER,0,0,30,30,"TIMER");
Fl::add_timeout(1,Fl_Timeout_Handler);
win->end();
win->show();
return(Fl::run());
}
i link with the lib that ver1.1.7 gives us.
>
> > hi, guys. I used this form to set a timer:
> > Fl_Timer * timer=3Dnew Fl_Timer(FL_VALUE_TIMER,0,0,30,30,"Timer");
> > But, it turns out a external link error.
>
> What fltk version?=20
> What platform?
> What toolchain?
> What link err?
> What libraries did you link with?
> Did you consider trying the fltk fl::add_timeout() methods in preference
> to the Forms emulation timers?
> Can you show a single page compilable example that manifests the fault?
>
>
> SELEX Sensors and Airborne Systems Limited
> Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex=
> SS14 3EL
> A company registered in England & Wales. Company no. 02426132
> ********************************************************************
> This email and any attachments are confidential to the intended
> recipient and may also be privileged. If you are not the intended
> recipient please delete it from your system and notify the sender.
> You should not copy it or use it for any purpose nor disclose or
> distribute its contents to any other person.
> ********************************************************************
>
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk