[antlr-interest] Problems with using the C++ grammar provided at antlr.org.

Ric Klaren ric.klaren at gmail.com
Sun Jul 24 15:11:45 PDT 2005


Min Deng wrote:
> By using the command 
> "g++ -c -I../include *.cpp 2>&1 | less", 
> I compiled the ANTLR generated Lexer and Parser
> sucessfully. But when using the command 
> "g++ -o CPPParser *.o -L../lib -lantlr 2>&1 | less",
> I got a lot of error messages. I copied some of them
> in the following. Could somebody give me a hint what
> is wrong? 
> 
> BTW:
> o   I am using g++ 3.2.0 on cygwin. 
> o   I used the precompiled ANTLR C++ library that
> exists as lib/libantlr.a.

Try rebuilding the antlr library with g++ 3.2.0 as well then link them
both. It might be a problem due to an incompatible ABI (the symbol name
mangling changed a few times in the 3.x track) not sure what the
precompiled lib is built with.

Cheers,

Ric


More information about the antlr-interest mailing list