Problem of building C++ library in VC6
- While building the C++ library antlr.lib in VC++6.0, I got the
...\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
> While building the C++ library antlr.lib in VC++6.0, I got the<SNIPPED>
> following errors:
> I am using antlr 2.7.2,Could someone tell me how to solve it,thanksa
Please search the mailing list archive and the FAQ before posting in
future. Many questions already have documented answers.
Archives : http://groups.yahoo.com/group/antlr-interest/messages
FAQ : http://www.jguru.com/faq/ANTLR
There have been extensive discussions about compiling the ANTLR C++
runtime for Windows using MSVC++ v6 and v7 (i.e. VS.NET) as a DLL and
as an import lib very recently.
Msg# 7096, 7106 and 7295 for instance.