I got this error when i try to compile my code 1>inventory.obj : error LNK2019:
ID: 3527258 • Letter: I
Question
I got this error when i try to compile my code 1>inventory.obj : error LNK2019: unresolved external symbol "public: __thiscall item::item(void)" (??0item@@QAE@XZ) referenced in function "public: __thiscall Node::Node(void)" (??0Node@@QAE@XZ) here is a piece of code : char* item:: getName(char* item) { strcpy(item, this-> name); return name; } and here is what it looks like in the header file class item { private: char* name; double m_weight; int count; public: //constructors item(); item(char* name,double); //destructors ~item(); //accessor functions //const char* const getName() const; char* getName(char* item); if you need the whole code , please let me know ! Thanks for helping !!Explanation / Answer
go4answers.webhost4life.com/Example/lnk2019-unresolved.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.