I\'m trying to link to a shared library with a template class, but it is giving me \"undefined symbols\" errors. I\'ve condensed the problem to about 20 lines of code.
The compiler has to see all the code for a template, so it can generate the appropriate code for the actual type you want to use.
So you should place all the code in your .h. file.