[antlr-interest] C++ target Problem (typedef)
Gokulakannan Somasundaram
gokul007 at gmail.com
Fri Feb 17 23:25:21 PST 2012
The Cpp Target which can co-exist with the C Target is now in Wiki.
Thanks,
Gokul.
On Fri, Feb 17, 2012 at 11:48 PM, Oliver Kowalke <oliver.kowalke at gmx.de>wrote:
> legacyDevCfg.h contains:
>
> #include <antlr3traits.hpp>
>
> using namespace antlr3;
>
>
> typedef Traits< legacyDevCfgLexer, legacyDevCfgParser > legacyDevCfgTraits;
> typedef legacyDevCfgTraits legacyDevCfgLexerTraits;
> typedef legacyDevCfgTraits legacyDevCfgParserTraits
>
>
> in Cpp/dynamic-scope example:
>
> g++ -W -Wall -g -I. -I/home/abc/Projekte/Antlr/**Cpp/include -c -o
> main.o main.cpp
>
> produces:
>
> In file included from UserTraits.hpp:18:0,
> from TLexer.hpp:66,
> from main.cpp:1:
> Cpp/include/antlr3traits.hpp:**8:10: error: »DefaultAllocPolicy« in
> Namensbereich »antlr3« is not a type
>
> Oliver
>
>
> Can you send me your traits file? Have you taken a look at the examples
>> provided? There is a UserTraits.hpp in each.
>>
>> Thanks,
>> Gokul.
>>
>
>
More information about the antlr-interest
mailing list