[antlr-interest] "Multiple definition of" error messages at compilation

Martin Probst mail at martin-probst.com
Tue Apr 4 03:10:08 PDT 2006


Isn't the normal solution to this problem that you define a symbol 
*within* the header? E.g. in avlTree.hh

---->8----
#ifndef _AVL_TREE_HH
#define _AVL_TREE_HH

... declarations ...

#endif // _AVL_TREE_HH
----8<----

So a duplicate inclusion of avlTree.hh will have no effect at all?

This whole macro thing is one of the top reasons why C++ is evil and bad ...

Martin


More information about the antlr-interest mailing list