I am compiling a rather large project in which I faced with
error: ‘CRoom room’ redeclared as different kind of symbol
Right at
class CRoom
{
.....
} room("test");
The problem is that I searched into the whole my project files and I could not find such a variable anywhere else. Is it possible to force the complier to tell me where it has found the original place of such definition? If it is not possible, at least, is it possible to reveal the type of the original variable at comfile time (Note that this programs has so many other errors and I cannot run it and show variable type. I want the compiler reveals the type for me).
Aucun commentaire:
Enregistrer un commentaire