[fltk.general] Fl::fatal and Fl::error trying to override

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Fl::fatal and Fl::error trying to override George Reeke 14:03 Jul 31 top right image
 
I am at fltk 1.3.5 but also trying 1.3.8
Doc says I can provide my own versions of Fl::error() and Fl::fatal() to override the default actions (basically exit).  I am providing this code in my routine, compiling with gcc, and I get an error message "no 'void Fl::error(const char*, ...)' member function declared in class 'Fl'.
My code is this:
void Fl::error(const char *fmt, ...) __attribute__((noreturn));
void Fl::error(const char *fmt, ...) { <some code> }
What do I have to do to replace the default functions with my functions?

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/275066fc-9b89-4d21-9266-7c62a71a93c0n%40googlegroups.com.
Direct Link to Message ]
 
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2022 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.