Solved Facing an issue while compiling but dont know why this issue is coming
-
I have 4 errors in my QT current project the errors are,
ERROR 1 : ( macro "index" requires 2 arguments, but only 1 given
inline QTextLine() : index(0), eng(0) {})
^
ERROR 2 : (macro "index" requires 2 arguments, but only 1 given
QTextLine(int line, QTextEngine *e) : index(line), eng(e) {})
^
ERROR 3 : (expected '(' before ',' token
inline QTextLine() : index(0), eng(0) {})
^
ERROR 4 : ( expected '(' before ',' token
QTextLine(int line, QTextEngine *e) : index(line), eng(e) {})
^what is causing the isuue and how to solve ?
-
@ManiRon Please show the code...
If that's the code you really have it can't work:inline QTextLine() : index(0), eng(0) {})
remove the last )
-
@jsulm Sorry Sir , I have solved the problem , I was not declaring the header files in proper order and when i rearranged the problem solved
-
@ManiRon said in Facing an issue while compiling but dont know why this issue is coming:
, I have solved the problem
Great! please don't forget to mark your post as such! Thanks