<分区>
Possible Duplicate:
Why should the implementation and the declaration of a template class be in the same header file?
我的头文件有
template <typename T>
class AA : public BB<T>
{
public:
AA()
{ ... }
这工作正常。但我需要将构造函数实现与头文件分开。
所以在cpp中,我有
template <typename T>
AA<T>::AA()
{ ... }
当我编译它时,它编译了但我得到未解析的外部符号错误。我在这里缺少什么?