G
ghalex
I have try to search in all the message related with this subject but
with no help.
I have to files :
test.h
//--
template <class varType>
class CTest{
public:
CTest(void);
protected:
varType *m_p;
};
//--
test.cpp
//--
#include "Array.h"
template <class varType>
CTest<varType>::CTest() {
m_p = new varType;
}
//--
in main app :
CTest<int> temp;
the error is :
public: __thiscall CTest<int>::CTest<int>(void)
fatal error LNK1120: 1 unresolved externals
pls help ??????????????????
with no help.
I have to files :
test.h
//--
template <class varType>
class CTest{
public:
CTest(void);
protected:
varType *m_p;
};
//--
test.cpp
//--
#include "Array.h"
template <class varType>
CTest<varType>::CTest() {
m_p = new varType;
}
//--
in main app :
CTest<int> temp;
the error is :
public: __thiscall CTest<int>::CTest<int>(void)
fatal error LNK1120: 1 unresolved externals
pls help ??????????????????