undefined reference to `vtable for
-
@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
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
consthere 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 said in undefined reference to `vtable for:
const QString ip() { return m_ip; }
btw, the
consthere 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; };-)
-
In this case, often you need to make clean and rebuild your project.
in cmake: remove build fold completely. rebuild everything
in qmake: make distclean. then rebuild. -
@SPlatten
To be clear: you mean that the file you have been showing us is theconfig.Hfile of the error message? And the implementation file isconfig.cppwhich is compiled toconfig.o. And the line #47staledata_t() : QObject(nullptr)is the one just under the
public:you show earlier? -
@SPlatten
To be clear: you mean that the file you have been showing us is theconfig.Hfile of the error message? And the implementation file isconfig.cppwhich is compiled toconfig.o. And the line #47staledata_t() : QObject(nullptr)is the one just under the
public:you show earlier? -
@SPlatten your class compiles perfectly fine for me, at least as long as I add the implementation of m_nextUDN, where exactly do you do that ?
I know you said/showed, you do it, but where exactly?
-
@SPlatten
Yeah, but is that "global scope", i.e. not inside anything else?@J-Hilk
The trouble is, withoutm_nextUDNdefined properly, I do not getundefined reference to vtable for asv::scm::helm::staledata_t'message, I get complaint about
m_nextUDNnot being defined.... -
@SPlatten
Yeah, but is that "global scope", i.e. not inside anything else?@J-Hilk
The trouble is, withoutm_nextUDNdefined properly, I do not getundefined reference to vtable for asv::scm::helm::staledata_t'message, I get complaint about
m_nextUDNnot being defined.... -