Search code examples
c++unresolved-external

C++ - Unresolved External Error


I am currently writing a stack class that uses linked lists. I feel like i am done but I keep getting an Unresolved external error.

Here it is:

Error: Unresolved external 'Stack<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::Node::Node(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)' referenced from C:\USERS\JOHNNY\DESKTOP\STACK\INFIX_TO_RPN.OBJ

Does anyone have any idea what to do? I sure don't. I can provide code if necessary.


Solution

  • That's complaining that a function Stack<...>::Node::Node(std::string) does not seem to have an implementation. Most likely it's that you've added the declaration for that constructor and used it somewhere, but your implementation is missing or misnamed.