undefined reference to `vtable for
-
@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.... -
-
@J-Hilk said in undefined reference to `vtable for:
@SPlatten are you sure config.c is party of your project ? :D so the linker can find it
?? Look at actual linker statement being executed?
Hmm, originally you showed
.build/config.o: In function asv::scm::helm::staledata_t::staledata_t()':immediately above the
undefined reference to vtablemessage. Is that still present? Because that does imply the linker is trying to pull inconfig.o, which would imply it does appear on the linker command line.... Is that indeed the right.build/config.opath for theconfig.oyou keep rebuilding? -
soooo, since you'e not using m_nextUDN anywhere else and its private.... have you considered simply using:
static uint16_t nextUDN() { static uint16_t m_nextUDN = 0; return ++(m_nextUDN); }?
-
@JoeCFD
It it were compiled as C code, it wouldn't begin to compile :) So I think we can assume whatever his file extension it's being compiled as C++! -
-
-
-
@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....@JonB , sorry to do this, can you please delete any posts where you have quoted my text or edit to remove quoted text. I am in trouble as I have mentioned project names in my posts that I should not have and as a result my contract has been terminated.
Thank you,
Simon -
@JonB , sorry to do this, can you please delete any posts where you have quoted my text or edit to remove quoted text. I am in trouble as I have mentioned project names in my posts that I should not have and as a result my contract has been terminated.
Thank you,
Simon