A template will only be compiled with spedified template parameter. Thus there will be nothing in the dll to link against.
In order to use a template you always need to include both: declaration and definition. You cannot put the definitions in a .cpp file like ordinary classes/functions.