>
> Add this to the 'public' section of Control:
> virtual ~Control() {;}
>
> It's hard for me to type right now (recovering from hand surgery),
> so an explanation is an "exercise for the reader" :)
I was going to say "What, you didn't like my explanation!", but I just
looked on the forum and it seems to have gone all base-64 somewhere
along the way, so that won't be aiding readability too much.
Here's another go at posting that:
You've got a virtual base class, but you haven't declared the destructor
- so the compiler is giving you a default (and non-virtual) destructor.
You need to add something like:
public:
/* virtual destructor added to appease gcc */
virtual ~Control() {}
To your Control class definition - that'll shut it up without turning
off the warnings. Turning off warnings is bad, fixing them is good.
And "ouch!" on the hand situation.
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