[antlr-interest] nullASTptr linkage and ASTNULLType implementation

kjerken kjerken at yahoo.com
Wed Feb 25 15:25:25 PST 2004


I am attempting to compile ANTLR 2.7.2 using Visual C++ 6.0 and the
supplied project and workspace files.  Having searched for the
following errors in the FAQ, online, and in the group archives, I hope
these aren't repeated questions.

First:
Compiling BaseAST.cpp gives me the following error:
> baseast.cpp(312) : error C2201: 'nullASTptr' : must have external
linkage in order to be exported/imported

But in its declaration, in AST.hpp(148), it's not declared static:
> extern ANTLR_API AST* const nullASTptr

Second:
Having solved that problem temporarily by making nullASTptr non-const,
I then run into the problem that ASTNULLType has no method
implementations.  Am I missing an implementation file (I have the
.hpp header)?

Thanks,
Kjerken




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
     antlr-interest-unsubscribe at yahoogroups.com

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



More information about the antlr-interest mailing list