I have a couple of template classes in separate libraries but when I try to link them into an executable I get errors saying that all the instances of the templates are unreferenced and the executable won't build.

Is there some system library that I have to add to the link command for templates?

I'm using Eclipse and g++ 4.4.2.