undefined reference to `vtable for
-
@SPlatten
Well, I know nothing about QML or properties or whatever, only about C++, but where do you define storage for (not declare) thestatic uint16_t m_nextUDN;
? If that is missing could it lead to the error? BTW, your topic title does not actually tell us what the full error is.... -
@SPlatten
OK for the definition! [I'm about to post a question in the C++ Gurus sub-forum about this :) ]the message is just name space and class name
But are we to assume that is the (correct) namespace & class name specifically for
staledata_t
?I think between you, you have solved the issue
However, that appears to not be all, the same message is still reported.
Are these two statements meant to be consistent?
-
@SPlatten said in undefined reference to `vtable for:
const QString ip() { return m_ip; }
btw, the
const
here has no meaning. I think you meant to write:QString ip() const { return m_ip; }
or
const QString &ip() { return m_ip; }
or
const QString &ip() const { return m_ip; }
;-)
-
@SPlatten
To be clear: you mean that the file you have been showing us is theconfig.H
file of the error message? And the implementation file isconfig.cpp
which is compiled toconfig.o
. And the line #47staledata_t() : QObject(nullptr)
is the one just under the
public:
you show earlier?