Dear All,
I have the following
I have created a templated class defined as
template <class T> class Queue
{
public:
Queue();
~Queue();
Display();
};
this sits in templclasses.h
and the following in templclasses.cpp
#include "stdafx.h"
#include "templclasses.h"
#include <iostream>
template <class T> Queue<T>::Queue()
{}
template <class T> Queue<T>::~Queue()
{}
template <class T> Queue<T>:
isplay()
{}
I instansiate via
typedef Queue<data> Queue;
Queue Now;
when i try to link i get the following error
emplatesDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall Queue<struct data>::~Queue<struct data>(void)" (??1?$Queue@Udata@@@@QAE@XZ)
templatesDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall Queue<struct data>::Queue<struct data>(void)" (??0?$Queue@Udata@@@@QAE@XZ)
can anyone please assist ?
I have the following
I have created a templated class defined as
template <class T> class Queue
{
public:
Queue();
~Queue();
Display();
};
this sits in templclasses.h
and the following in templclasses.cpp
#include "stdafx.h"
#include "templclasses.h"
#include <iostream>
template <class T> Queue<T>::Queue()
{}
template <class T> Queue<T>::~Queue()
{}
template <class T> Queue<T>:
{}
I instansiate via
typedef Queue<data> Queue;
Queue Now;
when i try to link i get the following error
emplatesDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall Queue<struct data>::~Queue<struct data>(void)" (??1?$Queue@Udata@@@@QAE@XZ)
templatesDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall Queue<struct data>::Queue<struct data>(void)" (??0?$Queue@Udata@@@@QAE@XZ)
can anyone please assist ?