It seems that there is a constant enum in qt5/qlalr/src/grammar_p.h named "ERROR", and it causes a C2059 error "syntax error: constant". I tried to rename "ERROR" to "ERROR_", and this error disappeared, but other errors occured.

Is there a constant named "ERROR" before this file be compiled? What should I do to solve this problem? Thanks in advance