[antlr-interest] C++ target Problem (typedef)

Oliver Kowalke oliver.kowalke at gmx.de
Fri Feb 17 06:51:29 PST 2012


Hi,

I'm happy to see a runtime for C++.

Unfortunately I get an error:
The grammer is named 'legacyDevCfg' and in the lexer header file 
(legacyDevCfgLexer.hpp) a typedef is declared:

typedef legacyDevCfgLexerTraits legacyDevCfgLexerImplTraits;

But legacyDevCfgLexerTraits is not defined in the files (grep 
legacyDevCfgLexerTraits *) :/

echo $CLASSPATH
/home/abc/Projekte/Antlr/antlr_with_cpp-3.4.jar

g++ -W -Wall -g -pthread -I.-I./Cpp/include  -c -o main.o main.cpp

-> error: »legacyDevCfgLexerTraits« is not a type

any ideas?

thx,
Oliver


More information about the antlr-interest mailing list