When I declare an event table in a class a.k.a DECLARE_EVENT_TABLE(); then try to compile, i always get this error:
[Linker Error] undefined reference to `vtable for Utility' (utility being my class) What does this mean and how do I fix it? All research on this has turned up dead ends =(. Thanks
clutchkiller 3 Junior Poster
Recommended Answers
Jump to PostPresumably something needs to be declared as virtual in Utility. Without code, it's hard to say exactly what.
Jump to PostTry making
DECLARE_EVENT_TABLE();
public instead of private.Nah, don't do that, it's good as is. However this:
try putting this in your code:
BEGIN_EVENT_TABLE(MyFrame, wxFrame) END_EVENT_TABLE()
Or, if you aren't goint to have any events, remove
DECLARE_EVENT_TABLE();
altogether.is indeed the answer to your problem.
All 5 Replies
nucleon 114 Posting Pro in Training
clutchkiller 3 Junior Poster
nucleon 114 Posting Pro in Training
Nick Evan 4,005 Industrious Poster Team Colleague Featured Poster
clutchkiller 3 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.