[antlr-interest] C target with g++ compiler

Johannes Luber jaluber at gmx.de
Wed Nov 7 02:22:51 PST 2007


Dan Hazon wrote:
...
> 
> Can you suggest an elegant way to overcome those errors?
> 
> I'm interfacing with some other C++ code and must use g++.

Why don't you compile the C-target with a C-compiler and reference the
resulting library via extern C?

Johannes


More information about the antlr-interest mailing list