[antlr-interest] C target, C grammar + AST = missing *_SymbolsPop()
Gary R. Van Sickle
g.r.vansickle at att.net
Tue Jan 20 21:21:12 PST 2009
[]
> > $ antlr C.g ## or however you invoke ANTLR, this is my
> shell script
> > that does "java org.antlr.Tool C.g"
> > $ gcc -I. CParser.c CLexer.c main.c -lantlr3c
> >
> > I get this:
> >
> > "/cygdrive/c/DOCUME~1/GaryV/LOCALS~1/Temp/ccwDPkR8.o:CParser.c
> :(.text+0xbc2c
> > ): undefined reference to `_ptranslation_unit_SymbolsPop'
> > /cygdrive/c/DOCUME~1/GaryV/LOCALS~1/Temp/ccwDPkR8.o:CParser.c:
> (.text+0xc6a2)
> > : undefined reference to `_pfunction_definition_SymbolsPop'
> > /cygdrive/c/DOCUME~1/GaryV/LOCALS~1/Temp/ccwDPkR8.o:CParser.c:
> (.text+0xd189)
> > : undefined reference to `_pdeclaration_declarationPop'
> > /cygdrive/c/DOCUME~1/GaryV/LOCALS~1/Temp/ccwDPkR8.o:CParser.c:
> (.text+0x107df
> > ): undefined reference to `_pstruct_or_union_specifier_SymbolsPop'
> > /cygdrive/c/DOCUME~1/GaryV/LOCALS~1/Temp/ccwDPkR8.o:CParser.c:
> (.text+0x27dc1
> > ): undefined reference to `_pcompound_statement_SymbolsPop'
> > collect2: ld returned 1 exit status"
> >
> > Comment out the AST lines and it builds fine.
> >
> > ???
> >
> > > Jim
> > >
>
> Replicated this with "ANTLR Parser Generator Version
> 3.1.2-2008-10-21"
> and... I'm not sure which version of runtime, Makefile.am is
> dated 10/1/08.
>
...and also replicated with "ANTLR Parser Generator Version
3.1.2-2008-10-21" and libantlr3c-3.1.2.b1.tar.gz from here:
<http://www.antlr.org/hudson/job/ANTLR%20C%20Runtime/lastSuccessfulBuild/art
ifact/libantlr3c-3.1.2.b1.tar.gz>
Is there something else I can do to try help debugging this?
--
Gary R. Van Sickle
More information about the antlr-interest
mailing list