Tag: linker-error
3 posts
-
"undefined reference to vtable": What the Linker Is Telling You and How to Fix It
Why GCC reports "undefined reference to vtable for X": the key function rule, undefined virtual destructors, unlinked .cpp files and Qt moc, and each fix.
-
Fixing "multiple definition" Linker Errors in C++: ODR, Header Definitions and inline
Why C++ code that compiles fails to link with "multiple definition of" (LNK2005 on MSVC), why header guards do not help, and when to use inline or extern.
-
LNK2019 Unresolved External Symbol in C++: Five Causes
Fix MSVC LNK2019 and “unresolved external symbol”: missing definitions, .cpp not in the build, missing .lib links, name mismatches, and templates.