I will try to explain my problem in the simplest way. I have a template class Queue, as follows:
The definitions are inside this file. Other two files include this header. There is other file that includes these two files. I compile each file separately. The two files that include the template compile succesfully. But, when I try to compile the third file, I have compiler error:
Queue& operator=(const Queue&);
In file included from ether.h:15,
fila.h:8: redefinition of `class Queue<T>'
fila.h:8: previous definition of `class Queue<T>'
The general structure of the files are:
ether.h includes queue.h
application.h includes queue.h
host.cpp includes application.h and ether.h
Thanks any help!