ARM编译Qt程序报错pinyin.cpp:1: error: stray ‘\357‘ in program

ARM编译Qt程序报错pinyin.cpp:1: error: stray ‘\357’ in program

问题:

Qt程序用gcc编译可以通过,用arm-linux-gcc编译文件的时候出现异常错误。
pinyin.cpp:1: error: stray ‘\357’ in program
pinyin.cpp:1: error: stray ‘\273’ in program

解决

将文件复制到windows系统中,用“记事本”打开文件,然后“另存为”,编码选为ASNI,然后再复制到linux下重新编译则可 。

你可能感兴趣的:(arm开发,qt,开发语言)