By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,720 Members | 2,153 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,720 IT Pros & Developers. It's quick & easy.

Class Templates pls help

P: n/a
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 ??????????????????

Apr 14 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
gh****@gmail.com wrote:

[...]
the error is :
public: __thiscall CTest<int>::CTest<int>(void)
fatal error LNK1120: 1 unresolved externals

pls help ??????????????????


http://www.parashift.com/c++-faq-lit...html#faq-35.12

--
Ney André de Mello Zunino
Graduando em Ciência da Computação
Universidade Federal de Santa Catarina
Apr 14 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.