Hi lads, nice to meet you all, I have a question regarding generics in C++. I come from a Java background and I have to learn C++ for a new job and I'm progressing through it fine, its not so bad really. Memory management and pointers used to scare me but now I couldn't imagine programming without them. I know how to generics in Java and am comfortable enough with them, I tried using templates but I got compiler errors galore with my C++ Linked List so I created this Linked List class and it works well enough, but only with integers. Could anyone point me in the right directions regarding making this be compatible with all primitive types. All input is greatly appreciated. Thanks in Advance.
/tmp/ccuZ68zn.o: In function `main':
Main.cpp:(.text+0x11): undefined reference to `LinkedList<int>::LinkedList()'
Main.cpp:(.text+0x22): undefined reference to `LinkedList<int>::insertElement(int)'
Main.cpp:(.text+0x33): undefined reference to `LinkedList<int>::insertElement(int)'
Main.cpp:(.text+0x44): undefined reference to `LinkedList<int>::getElementAt(int)'
Main.cpp:(.text+0x78): undefined reference to `LinkedList<int>::~LinkedList()'
Main.cpp:(.text+0x93): undefined reference to `LinkedList<int>::~LinkedList()'
collect2: ld returned 1 exit status
Thanks again for your help, I tried it that way before and these were the errors.