Unresolved external symbol error | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Unresolved external symbol error

I created an external class of a stack and when i try to use it it says unresolved external symbol. I declared and implemented the functions in the header and cpp file but i can't see the problem. What may cause it? Important: its a template class and all functions got template <class T>... Instantiation: Stack<int> st; St.push(1);...// the problem starts here Ternary ... Void stack<T> ::Push(T val) { arr[place] = val; place++; }

25th Nov 2018, 11:05 AM
gil gil
1 Answer
+ 4
If it is an LNK2019 error, then here is a bullet list of possible sources of the issue. https://msdn.microsoft.com/en-us/library/799kze2z.aspx
25th Nov 2018, 11:22 AM
Babak
Babak - avatar