[antlr-interest] C++ Runtime in WinNT for 2.7.2a2

Prasad K K prasad at aztec.soft.net
Wed Feb 20 01:22:25 PST 2002


Hi,

I need help in using C++ parser generator in Win NT platform.

I am able to use it in version 2.7.1 (by following the posts I found here and in
the jGuru FAQ), but it does not work for version 2.7.2a2.
Three of the files do not compile when I try to compile using 'cl' (Microsoft
C/C++ compiler) compiler. They are

BaseAST.cpp
BaseAST.cpp(337) : error C2201: 'nullASTptr' : must have external linkage in
order to be exported/imported

Token.cpp
Token.cpp(40) : error C2720: 'badToken' : '__declspec(dllimport ) '
storage-class specifier illegal on members
Token.cpp(40) : error C2491: 'Token::badToken' : definition of dllimport static
data member not allowed

TreeParser.cpp
TreeParser.cpp(64) : error C2491: 'TreeParser::ASTNULL' : definition of
dllimport static data member not allowed

Any information as to why these errors occur and how they can be resolved will
be of immense help.

Moreover, I was able to compile successfully and create the library for the
2.7.2a2 version by using GNU (g++) compiler.

Is there a 'preferred' platform or compiler for ANTLR?

Thanks,
Prasad

 

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



More information about the antlr-interest mailing list