Compiler cannot find instantiation of templated method [duplicate]
0
This question already has an answer here:
Why can templates only be implemented in the header file?
14 answers
What is an undefined reference/unresolved external symbol error and how do I fix it?
32 answers
I'm trying to write a method for a selection class that I've written that scans though the selection list for the first item that can be cast to a given datatype and returns it (or null if there is none). Unfortunately, my compiler is complaining: error: undefined reference to `GraphNode* Selection::getFirstItem<GraphNode*>()' The editor is providing some hints: warning: instantiation of func...