Question
C++ Help - Template Stack Using Linked List I am getting this error when I try to compile the code MyStack stack; int x=9; stack.push(x);
C++ Help - Template Stack Using Linked List
I am getting this error when I try to compile the code
MyStack
int x=9;
stack.push(x);
stack.pop(x);
Error
Undefined symbols for architecture x86_64:
"MyStack::pop(int)", referenced from: _main in main.o "MyStack::push(int const&)", referenced from: _main in main.o
"MyStack::MyStack()", referenced from: _main in main.o
"MyStack::~MyStack()",referenced from: _main in main.o
ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started