For each file that include the .h file you should be to insert both lines:
#include "MyfileWithTemplatesDeclaration.h"
#include "MyfileWithTemplatesDefinition.cpp"
sample
#include "list.h"
#include "list.cpp" //<---for to fix bug link err 2019
int main(int argc, _TCHAR* argv[])
{
list my_list;
my_list.add_end(3);
.
.
}
also, you dont forget to place your declaration class among centinel constants
#ifndef LIST_H
#define LIST_H
#include
.
.
template
class list
{
private:
int m_size,
m_count_nodes;
T m_line;
node *m_head;
public:
list(void);
~list(void);
void add_end(T);
void print();
};
#endif