[antlr-interest] Build the static Lib for ANTLR2.7.2rc1 under VC6.0(sp5)

macromliu <macromliu at yahoo.com.cn> macromliu at yahoo.com.cn
Sun Dec 29 15:44:19 PST 2002

 i have tried to use the ANTLR to do something.....

 and read many message to compile the ANTLR2.7.2 RC1

 here is the steps:

  1. create a new W32 Static Libaray project with the name ANTLR in 
this folder lib\cpp folder, click next
  2. check the MFC(it enable the RTTI)
  3. and all .cpp .hpp files to the project
  4. set the realease, and debug configurea
     and ANTLR_EXPORTS to the Preprecessor
  5. in file BaseASP.cpp and AST.hpp
    modify the 
    ANTLR_API AST* const nullASTptr=0;    line to 
    ANTLR_API AST* nullASTptr=0;
   :- or we got a compile error...

  6. compile...

now you can refer to examples\cpp\calc\main2.cpp to see how to 
paser the string via istringtream 



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

More information about the antlr-interest mailing list