My C++ compiler doesn't like the ANTLR code - what can I do?

Peter Wells

The ANTLR code uses some relatively new features of C++ which not all compilers support yet (such as namespaces, and new style standard headers).

There is work currently in progress to provide a compatibility mode for ANTLR, to enable older compilers to handle this.

At the moment, you may be able to work around the problem with a few nasty tricks:

Try creating some header files like 'iostream' just containing:

      #include <iostream.h>

and compile with an option to define away the word 'std', such as

      CC .... -Dstd= ....