Just barely started coding up LinkedList.h from my textbook as we are supposed to add some functions. So that I dont end up with a complete mess I've been running debugger every so often, and currently the damn thing is giving me errors that I just dont see :(.
it says my last bracket " };" on my linkedlist class is:
"missing ';' before identifier LinkedList
missing type specifier -int assumed. C++ does not support default int.
k i've added a ton, and now i'm hitting the problem you guys are referring to, sadly I have no idea what it means:
"see reference to class template instantiation 'LinkedList<T>' being compiled"
getting lots of random snags with this and no actual "errors" but it wont compile, under the gun getting this done fast as i can HELP :(
Are you trying to instantiate the LinkedList in main now?
e.g. LinkedList<int> mylist;
If so can you answer these questions.
1> Are your template classes fully implemented?
If yes see 2. If no, comment out all parts you haven't implemented and just get the class to compile (also 2 still applies if you comment parts out).
2> If so, since you are using them in another translation unit (main) then the implementations need to be inside the template's header file (and not mytemplate.cpp source file).