unterminated #ifndef / expected '}' at end of input

Qt creator 2.7.1 on Ubuntu 12.04 LTS

I spent much time on debugging on this strange issue. Why I call it "strange" is because I am almost sure that there is no mismatched #ifdef/#endif or if/else...but the compiler told me this error again and again.

Finally I found the root cause, this is because the Chinese word "功"....Looks like the Qt creator can show this Chinese word, but failed in compiler. Compiler hints me "warning: multi-line comment [-Wcomment]".

After removing above Chinese word, the compile is OK...

留言

熱門文章