Skip to content
Permalink
Browse files

Fix undefined reference error (#2)

CMakeFiles/moc-qt2.dir/mocgen.cpp.o: In function `main':
mocgen.cpp:(.text+0x7dad): undefined reference to `yydebug'
  • Loading branch information
EXL authored and heliocastro committed Oct 6, 2019
1 parent 5af918a commit c47756733f1ad6f30065a3ff8d2c1ef02602b789
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/moc/moc.y
@@ -280,7 +280,7 @@ char *straddSpc( const char *, const char *,
char *straddSpc( const char *, const char *,
const char *, const char * );

extern int yydebug;
//extern int yydebug;
bool lexDebug = FALSE;
int lineNo; // current line number
bool errorControl = FALSE; // controlled errors
@@ -1313,8 +1313,8 @@ int main( int argc, char **argv )
displayWarnings = FALSE;
} else if ( opt == "ldbg" ) { // lex debug output
lexDebug = TRUE;
} else if ( opt == "ydbg" ) { // yacc debug output
yydebug = TRUE;
// } else if ( opt == "ydbg" ) { // yacc debug output
// yydebug = TRUE;
} else {
error = "Invalid argument";
}

0 comments on commit c477567

Please sign in to comment.
You can’t perform that action at this time.