liaozhaocong@ubuntu:~$ gcc -S hello.i -o hello.s
hello.c: In function ‘main’:
hello.c:4:10: error: stray ‘\357’ in program
printf("Hello!this is our embedded world!\n ");
^
hello.c:4:10: error: stray ‘\274’ in program
hello.c:4:10: error: stray ‘\210’ in program
hello.c:4:19: error: expected ‘;’ before string constant
printf("Hello!this is our embedded world!\n ");
^
hello.c:4:19: error: stray ‘\357’ in program
hello.c:4:19: error: stray ‘\274’ in program
hello.c:4:19: error: stray ‘\211’ in program
为什么会这样求解释?????
-
- 帖子: 1
- 注册时间: 2016-04-03 15:08
- 系统: ubuntu14.4
-
- 帖子: 2284
- 注册时间: 2013-05-26 6:58
- 系统: Debian 9
Re: 为什么会这样求解释?????
看样子像是在百度贴吧或百度百科直接复制的代码吧?liaozc 写了:liaozhaocong@ubuntu:~$ gcc -S hello.i -o hello.s
hello.c: In function ‘main’:
hello.c:4:10: error: stray ‘\357’ in program
printf("Hello!this is our embedded world!\n ");
^
hello.c:4:10: error: stray ‘\274’ in program
hello.c:4:10: error: stray ‘\210’ in program
hello.c:4:19: error: expected ‘;’ before string constant
printf("Hello!this is our embedded world!\n ");
^
hello.c:4:19: error: stray ‘\357’ in program
hello.c:4:19: error: stray ‘\274’ in program
hello.c:4:19: error: stray ‘\211’ in program
网页自己加上的特殊字符,没办法.
-
- 帖子: 893
- 注册时间: 2011-02-14 17:46
Re: 为什么会这样求解释?????
明显是全角符号,看你粘贴上来的就是那个括号