[antlr-interest] antlr 3, language=C, getting pANTLR3_RECOGNIZER_SHARED_STATE unknown
Jim Idle
jimi at temporal-wave.com
Wed Mar 12 19:54:12 PDT 2008
You are using the 3.0.1 runtime library with the 3.1 snapshot. You will need to use the 3.1 C runtime snapshot if you want to run ANTLR 3.1, or drop your ANTLR tool jar version to 3.0.1.
Jim
From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-bounces at antlr.org] On Behalf Of Chris Snyder
Sent: Wednesday, March 12, 2008 7:12 PM
To: antlr-interest at antlr.org
Subject: [antlr-interest] antlr 3, language=C, getting pANTLR3_RECOGNIZER_SHARED_STATE unknown
I'm trying to compile my C lexer and I'm getting several errors but the first is this:
error C2081: 'pANTLR3_RECOGNIZER_SHARED_STATE' : name in formal parameter list illegal
which corresponds to these lines in the generated lexer:
// Function protoypes for the constructor functions that external translation units
// such as delegators and delegates may wish to call.
//
...
ANTLR3_API pMScriptLexer MScriptLexerNewSSD (pANTLR3_INPUT_STREAM instream, pANTLR3_RECOGNIZER_SHARED_STATE state);
I searched through the libantlr3c-3.0.1 files and didn't find that definition anywhere. I do see that it appears to be coming from C.stf template.
Any idea what I'm missing?
Thanks,
Chris
T-VEC Technologies, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080312/71a8ffa3/attachment.html
More information about the antlr-interest
mailing list