diff --git a/crlcore/src/ccore/acmsigda/AcmSigdaParserGrammar.yy b/crlcore/src/ccore/acmsigda/AcmSigdaParserGrammar.yy index 6c7e5629..fe8af41d 100644 --- a/crlcore/src/ccore/acmsigda/AcmSigdaParserGrammar.yy +++ b/crlcore/src/ccore/acmsigda/AcmSigdaParserGrammar.yy @@ -33,11 +33,11 @@ using namespace CRL; extern char* yytext; extern FILE* yyin; -extern int yylineno; extern int yylex (); extern int yywrap (); extern void yyrestart ( FILE* ); +int yylineno = 0; namespace { diff --git a/crlcore/src/ccore/acmsigda/AcmSigdaParserScanner.ll b/crlcore/src/ccore/acmsigda/AcmSigdaParserScanner.ll index 5d863e3e..bc0a84c8 100644 --- a/crlcore/src/ccore/acmsigda/AcmSigdaParserScanner.ll +++ b/crlcore/src/ccore/acmsigda/AcmSigdaParserScanner.ll @@ -7,7 +7,7 @@ #include "AcmSigdaParserGrammar.hpp" static std::string nameToken; - int yylineno = 0; +extern int yylineno; %}