[antlr-interest] Compiling antlr's generated c++ code

Ric Klaren ric.klaren at gmail.com
Thu Aug 25 11:32:19 PDT 2005


Mark Kattenbelt wrote:
> I've used antlr for java-based projects before, and that seemed to work
> just fine. Now I want to use it for parsing stuff in a c++ based
> projects, and I am having problems linking the code.
> 
> I am using dev-c++ 4.9.9.2 with min-gw (gcc version 3.4.2). I compile
> with all include files from antlr 2.7.5 and with the libantlr.a in the
> library directory. I also include the -lantlr option. The result is that
> it compiles fine, but the linking stage goes totally wrong:

Did you compile the support library with the same compiler?

Cheers,

Ric


More information about the antlr-interest mailing list