[antlr-interest] C runtime linking error?

Yves Weißig weissig at rbg.informatik.tu-darmstadt.de
Thu Mar 15 04:49:32 PDT 2012


Hi, thanks for the hint... don't know if I get that right:
ctx->pLexer = antlr3LexerNewStream(ANTLR3_SIZE_HINT, instream, state);
throws the error and was generated that way, something wrong with my
generator? I didn't edit the files...

Am 15.03.2012 12:19, schrieb Gavin Lambert:
> At 22:19 15/03/2012, Yves Weißig wrote:
>>I'm trying to compile and link an ANTLR C backend with some C++
>>code which I wrote.
> [...]
>>/tmp/ccnHhg86.o: In function `RtfLexerNewSSD':
>>RtfLexer.cpp:(.text+0xb0): undefined reference to
>>`antlr3LexerNewStream'
> 
> Most likely, you're missing some extern "C" blocks.
> 


More information about the antlr-interest mailing list