[antlr-interest] C target examples fail

Gevik Babakhani gevik at xs4all.nl
Fri Jun 27 06:15:38 PDT 2008


I am trying to compile the C/C++ examples in Visual Studio 2008. The
compilation fails with many errors.

What am I doing wrong here?

 

c:\antlr\runtime\c\include\antlr3cyclicdfa.h(37) : warning C4510:
'ANTLR3_CYCLIC_DFA_struct' : default constructor could not be generated

        c:\antlr\runtime\c\include\antlr3cyclicdfa.h(13) : see declaration
of 'ANTLR3_CYCLIC_DFA_struct'

c:\antlr\runtime\c\include\antlr3cyclicdfa.h(37) : warning C4512:
'ANTLR3_CYCLIC_DFA_struct' : assignment operator could not be generated

        c:\antlr\runtime\c\include\antlr3cyclicdfa.h(13) : see declaration
of 'ANTLR3_CYCLIC_DFA_struct'

c:\antlr\runtime\c\include\antlr3cyclicdfa.h(37) : warning C4610: struct
'ANTLR3_CYCLIC_DFA_struct' can never be instantiated - user defined
constructor required

c:\antlr\examples-v3\c\c\main.c(150) : error C3861: 'TOKENSOURCE':
identifier not found

CParser.c

c:\antlr\runtime\c\include\antlr3cyclicdfa.h(37) : warning C4510:
'ANTLR3_CYCLIC_DFA_struct' : default constructor could not be generated

        c:\antlr\runtime\c\include\antlr3cyclicdfa.h(13) : see declaration
of 'ANTLR3_CYCLIC_DFA_struct'

c:\antlr\runtime\c\include\antlr3cyclicdfa.h(37) : warning C4512:
'ANTLR3_CYCLIC_DFA_struct' : assignment operator could not be generated

        c:\antlr\runtime\c\include\antlr3cyclicdfa.h(13) : see declaration
of 'ANTLR3_CYCLIC_DFA_struct'

c:\antlr\runtime\c\include\antlr3cyclicdfa.h(37) : warning C4610: struct
'ANTLR3_CYCLIC_DFA_struct' can never be instantiated - user defined
constructor required

c:\antlr\examples-v3\c\c\cparser.c(2317) : error C2440: '=' : cannot convert
from 'void *' to 'pCParser_Symbols_SCOPE'

        Conversion from 'void*' to pointer to non-'void' requires an
explicit cast

c:\antlr\examples-v3\c\c\cparser.c(2334) : error C2440: '=' : cannot convert
from 'void *' to 'pCParser_Symbols_SCOPE'

        Conversion from 'void*' to pointer to non-'void' requires an
explicit cast

c:\antlr\examples-v3\c\c\cparser.c(2361) : error C2440: '=' : cannot convert
from 'void *' to 'pCParser_Symbols_SCOPE'

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080627/54182804/attachment.html 


More information about the antlr-interest mailing list