M
Mastadex
So here is my Code:
template <class T>
struct Nodes
{
T *Data; // The Image
char Name[50]; // The Name of the image
Nodes<T> *Prev;
Nodes<T> *Next;
};
typedef struct Nodes Node;
template <class T>
class List
{
Node *Current;
public:
List();
~List();
};
---------------------------------------------------
#include "List.h"
template <class T>
List<T>::List()
{
}
template <class T>
List<T>::~List()
{
}
====================================================
error LNK2019: unresolved external symbol "public: __thiscall
List<class Image>::~List<class Image>(void)"
(??1?$List@VImage@@@@QAE@XZ) referenced in function main...
Thats the error I get. Is this one of those subtle c++ bugs that I need
to work around? my main is quite simple, all it does is instanciate the
class. thats all:
List<int> foo;
Im completely confused.
template <class T>
struct Nodes
{
T *Data; // The Image
char Name[50]; // The Name of the image
Nodes<T> *Prev;
Nodes<T> *Next;
};
typedef struct Nodes Node;
template <class T>
class List
{
Node *Current;
public:
List();
~List();
};
---------------------------------------------------
#include "List.h"
template <class T>
List<T>::List()
{
}
template <class T>
List<T>::~List()
{
}
====================================================
error LNK2019: unresolved external symbol "public: __thiscall
List<class Image>::~List<class Image>(void)"
(??1?$List@VImage@@@@QAE@XZ) referenced in function main...
Thats the error I get. Is this one of those subtle c++ bugs that I need
to work around? my main is quite simple, all it does is instanciate the
class. thats all:
List<int> foo;
Im completely confused.