Encountering "Unexpected end of file encountered in comment" error in QT

When compiling a QT project, I encountered the error "Unexpected end of file encountered in comment", and then it said

/* */

Problem caused by . Reference"Unexpected end of file encountered in comment" – remember a crashing bug, found that it may be because:

There is an error in the utf8 format. One comment is /* Chinese */. Due to encoding issues, Chinese and English are combined and the */ of the comment is swallowed, causing a bug. Just change it to /* Chinese */.

Or you can change this comment to//. Then it can be compiled and passed.

Guess you like

Origin blog.csdn.net/qaaaaaaz/article/details/134015130