Search code examples
c++priority-queuebinary-heap

unresolved external symbol PriorityQueue


can anyone help me with this please. I am trying to build a priority queue but keep getting a unresolved external symbol error. Any help would be well appreciated.

Error 2 error LNK2019: unresolved external symbol "public: __thiscall Node::Node(void)" (??0Node@@QAE@XZ) referenced in function "public: __thiscall PriorityQueue::PriorityQueue(void)" (??0PriorityQueue@@QAE@XZ)


Solution

  • You have forgotten to implement the Node constructor Node::Node.

    Also a function with no parameters is written Node() and not Node(void) the latter is legacy.