[antlr-interest] Problem of building C++ library in VC6

xdjicn <xdji at mail.ustc.edu.cn> xdji at mail.ustc.edu.cn
Tue Feb 4 04:05:36 PST 2003


While building the C++ library antlr.lib in VC++6.0, I got the 
following errors:
...\BaseAST.cpp(312) : error C2201: 'nullASTptr' : must have external 
linkage in order to be exported/imported
...\Token.cpp(18) : error C2720: 'badToken' : '__declspec
(dllimport ) ' storage-class specifier illegal on members
...\Token.cpp(18) : error C2491: 'Token::badToken' : definition of 
dllimport static data member not allowed
...\TreeParser.cpp(39) : error C2491: 'TreeParser::ASTNULL' : 
definition of dllimport static data member not allowed

I am using antlr 2.7.2,Could someone tell me how to solve it,thanks a 
lot!


 

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



More information about the antlr-interest mailing list