undefined reference (templates) <p>I have a namespace that gets built out of a .cpp and .h<br> lots of classes use this namespace and call the template functions from within it How do I fix all the undefined references during the linking process? Where would I put all the definitions of the template functions? could someone show me an example of a namespace that uses templates and then a class that uses that namespace and can successfully call one of the templated functions without error?</p>