Template class giving linker error ...

Posted by Atul on Stack Overflow See other posts from Stack Overflow or by Atul
Published on 2011-01-03T10:50:50Z Indexed on 2011/01/03 10:53 UTC
Read the original article Hit count: 327

Filed under:
|

Hi,
I am having a template class which is exposed, in which I added a method. This class is in namespace A. Now, I am calling this method in another namespace (say B). Initially, compiler gave me linker error saying "unresolved external symbol" for this particular method.
However, if I call this method inside the same namespace (that is A), it links well. After that, it links well in namespace B as well.
Why could this be happening ?
Does this has something to do with the creating Template object of my class ?
Atul

© Stack Overflow or respective owner

Related posts about c++

Related posts about templates