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 ;




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

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试