# Template type function

**URL:** https://forum.kirupa.com/t/template-type-function/285945
**Category:** Uncategorized
**Created:** [April 8, 2009, 2:33am UTC](https://forum.kirupa.com/t/template-type-function/285945 "2009-04-08T02:33:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![NeoDreamer](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)
#### Post date: [April 8, 2009, 2:33am UTC](https://forum.kirupa.com/t/template-type-function/285945/1 "2009-04-08T02:33:15Z")

</div>

I’m using a graphics library that can display strings on the screen. I wanted to also be able to display ints, floats, etc…, so I attempted to write a template function to convert those number types into strings before passing it to the graphics library. On the left is my .H file and on the right is my .CPP file:

![](http://img22.imageshack.us/img22/4034/templateiah.png)

I am getting the error: \*_1\>World.obj : error LNK2001: unresolved external symbol "public: void \_\_thiscall Debug::print\<char const \>(char const \* const)const " (??$print@PBD@Debug@@QBEXQBD@Z)_

Is my form wrong?
