Is the sourcecode of your templateclass written in the headerfile of your template ?