I am creating a linked list with self referential class in C++ and I want to have a static pointer of the type Item (Item is the class name) named \"startPointer\" so that w
You have to define your static member like this:
Item* Item::startPointer = nullptr; // or = NULL; if your cpp version is below c++11
Write such a line in a single compilation unit (cpp file), otherwise the member is just declared.