Article ID: 128789 - Last Review: July 5, 2005 - Revision: 1.1 BUG: LNK2001 on Member Function When Use Nested Class TemplateThis article was previously published under Q128789 On This PageSYMPTOMS
When you build a program that uses nested class templates, the following
link error is generated:
test.obj: error LNK2001: unresolved external symbol "?Funtion@BB@?$AA@HH@@QAEHXZ ( public: int __thiscall AA<int,int>::BB::Funtion(void) )" CAUSE
The compiler does not generate code for the member function in the nested
class template.
RESOLUTION
To work around the problem, use one of the following suggestions:
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
MORE INFORMATION
The following code can be used to reproduce or work around the problem.
Sample CodeAPPLIES TO
| Article Translations
|
Back to the top
