Linux下编译错误:error: stray ‘\377’ in program

Hello.c:1: error: stray ‘\232’ in program
Hello.c:1: error: stray ‘\247’ in program
Hello.c:1: error: stray ‘\360’ in program
Hello.c:1: error: stray ‘\224’ in program
Hello.c:1: error: stray ‘\217’ in program
Hello.c:1: error: stray ‘\204’ in program
Hello.c:1: error: stray ‘\343’ in program
Hello.c:1: error: stray ‘\271’ in program
Hello.c:1: error: stray ‘\2’ in program

Hello.c:9:4: error: invalid preprocessing directive #i

Hello.c:1: error: stray ‘\377’ in program
Hello.c:1: error: stray ‘\376’ in program
Hello.c:1: error: stray ‘#’ in program
Hello.c:1:4: warning: null character(s) ignored
Hello.c:1:6: warning: null character(s) ignored

Hello.c:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘n’

解决方法:把文件的格式Unicode改为ANSI ;




阅读更多
文章标签: Linux C语言开发
个人分类: c++ 软件开发
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭