[antlr-interest] Help with building ANTLR on VC6

Kelvin Goh kelvin7600 at yahoo.com
Mon Dec 8 19:04:41 PST 2003


Hi Ric
 
Thanks for the help. I downloaded the developer snapshot, and tried it with VC7. It managed to compile the static library successfully, though with some warnings.
 
I tried the calc example again. CalcTreeWalker.cpp and CalcParser.cpp generated by antlr will not compile, with a bunch of errors about missing identifers. There is also a couple of errors about unable to instantiate abstract class in Main.cpp
What am I doing wrong now? :(
 
---------------------------------------------------
d:\antlrSS\examples\cpp\calc\Main.cpp(53): error C2259: 'CalcTreeWalker' : cannot instantiate abstract class
d:\antlrSS\examples\cpp\calc\Main.cpp(39): error C2259: 'CalcParser' : cannot instantiate abstract class
d:\antlrSS\examples\cpp\calc\CalcTreeWalker.cpp(87): error C3861: '_retTree': identifier not found, even with argument-dependent lookup
d:\antlrSS\examples\cpp\calc\CalcTreeWalker.cpp(58): error C3861: '_retTree': identifier not found, even with argument-dependent lookup
d:\antlrSS\examples\cpp\calc\CalcTreeWalker.cpp(56): error C3861: '_retTree': identifier not found, even with argument-dependent lookup
d:\antlrSS\examples\cpp\calc\CalcTreeWalker.cpp(41): error C3861: '_retTree': identifier not found, even with argument-dependent lookup
d:\antlrSS\examples\cpp\calc\CalcTreeWalker.cpp(39): error C2065: '_retTree' : undeclared identifier
d:\antlrSS\examples\cpp\calc\CalcParser.cpp(121): error C3861: 'returnAST': identifier not found, even with argument-dependent lookup
d:\antlrSS\examples\cpp\calc\CalcParser.cpp(105): error C3861: 'returnAST': identifier not found, even with argument-dependent lookup
d:\antlrSS\examples\cpp\calc\CalcParser.cpp(101): error C3861: 'returnAST': identifier not found, even with argument-dependent lookup
d:\antlrSS\examples\cpp\calc\CalcParser.cpp(85): error C3861: 'returnAST': identifier not found, even with argument-dependent lookup
d:\antlrSS\examples\cpp\calc\CalcParser.cpp(76): error C3861: 'returnAST': identifier not found, even with argument-dependent lookup
d:\antlrSS\examples\cpp\calc\CalcParser.cpp(70): error C3861: 'returnAST': identifier not found, even with argument-dependent lookup
d:\antlrSS\examples\cpp\calc\CalcParser.cpp(66): error C3861: 'returnAST': identifier not found, even with argument-dependent lookup
d:\antlrSS\examples\cpp\calc\CalcParser.cpp(49): error C3861: 'returnAST': identifier not found, even with argument-dependent lookup
d:\antlrSS\examples\cpp\calc\CalcParser.cpp(40): error C3861: 'returnAST': identifier not found, even with argument-dependent lookup
d:\antlrSS\examples\cpp\calc\CalcParser.cpp(34): error C2065: 'returnAST' : undeclared identifier



Ric Klaren <klaren at cs.utwente.nl> wrote:


---------------------------------
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20031208/3d51fe75/attachment.html


More information about the antlr-interest mailing list