Compiler Error building the C++ support library (with MSVC60)?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Adam_Campbell
Posted On:   Wednesday, March 3, 2004 07:22 PM

When I try to build the C++ support library (with MSVC60) I get the following error: BaseAST.cpp(312) : error C2201: 'nullASTptr' : must have external linkage in order to be exported/imported. The compiler seems to not like the fact that it is trying to export a static. Is this a known issue? Is there a solution?

Re: Compiler Error building the C++ support library (with MSVC60)?

Posted By:   he_qing  
Posted On:   Wednesday, March 10, 2004 07:01 AM

I try to modify cppantlrAST.hpp

extern ANTLR_API AST* const nullASTptr;
to
extern ANTLR_API const AST* nullASTptr;

and modify cppsrcBaseAST.cpp

ANTLR_API AST* const nullASTptr=0;
to
ANTLR_API const AST* nullASTptr=0;

Is there a solution?
About | Sitemap | Contact