templating a linked list

I have a doubly linked list class (and a node class). I've tested both their functions in main() and everything works the way it should.
However, I'm now trying to template both classes and I'm having problems. I've read tutorials and spent a few days on this yet I can't seem to get it right. If someone could look over my code I would really appreciate it!

the error i'm getting right now is in main.cpp when i create a DLList object for testing.

main.cpp|43|undefined reference to DLList<int>::DLList()

DLList<int> testList;
i've also tried DLList<DLNode> testList. I guess I'm not sure which to use (neither work though)


http://dl.dropbox.com/u/3594001/DLNode.h
http://dl.dropbox.com/u/3594001/DLList.h
http://dl.dropbox.com/u/3594001/DLList.cpp
http://dl.dropbox.com/u/3594001/main.cpp
When using templates, the declaration and definition have to be in the same file.
ty very much
Topic archived. No new replies allowed.