编译错误error: stray ‘\343’ in program的解决
来源:互联网 发布:淘宝申诉场景怎么写 编辑:程序博客网 时间:2024/06/07 02:15
问题:
从网上拷贝了一段代码,粘贴到自己写的程序strcat_compare.c中,然后编译gcc -o strcat_compare strcat_compare.c;
出现错误如下:
avid@ubuntu:~/wrk/tmp$ gcc -o strcat_compare strcat_compare.c strcat_compare.c: In function ‘main’:strcat_compare.c:28:1: error: stray ‘\343’ in programstrcat_compare.c:28:1: error: stray ‘\200’ in programstrcat_compare.c:28:1: error: stray ‘\200’ in programstrcat_compare.c:28:1: error: stray ‘\343’ in programstrcat_compare.c:28:1: error: stray ‘\200’ in programstrcat_compare.c:28:1: error: stray ‘\200’ in programstrcat_compare.c:30:1: error: stray ‘\343’ in programstrcat_compare.c:30:1: error: stray ‘\200’ in programstrcat_compare.c:30:1: error: stray ‘\200’ in programstrcat_compare.c:30:1: error: stray ‘\343’ in programstrcat_compare.c:30:1: error: stray ‘\200’ in programstrcat_compare.c:30:1: error: stray ‘\200’ in programstrcat_compare.c:32:1: error: stray ‘\343’ in programstrcat_compare.c:32:1: error: stray ‘\200’ in programstrcat_compare.c:32:1: error: stray ‘\200’ in programstrcat_compare.c:32:1: error: stray ‘\343’ in programstrcat_compare.c:32:1: error: stray ‘\200’ in programstrcat_compare.c:32:1: error: stray ‘\200’ in programdavid@ubuntu:~/wrk/tmp$
运行环境:ubuntu 11.10;
解决办法:
1. 放狗搜,说可能程序本身的语法没有问题,但是,出错行中包含不被识别的字符,比如空格的格式不对;
2. 将程序中出错行前面的空格删除,重新插入空格或tab键,重新编译,错误消失。
问题解决。
- 编译错误error: stray ‘\343’ in program的解决
- 编译错误error: stray‘\343’in program的解决方法
- 【编译错误】error:stray'\243'in program
- 编译错误error: stray ‘\343’in program 或 unkown character \343 的解决方法
- 编译错误stray ‘\343’ in program解决办法
- stray '\343' in program 编译错误
- sublime text+mingw编译时提示错误 error: stray '\357' in program(已解决)
- c编译错误--error:stray \357 in program及其引发的字符编码概述
- gcc 编译错误:pthread_cond.c:62: error: stray ‘\343’ in program
- 当遇到error: stray '\241' in program错误的解决方法
- 当遇到error: stray '\241' in program错误的解决方法
- Linux下编译C程序出现错误:“ stray ‘\302' in program”的解决。
- error: stray '\32' in program 错误
- error: stray ‘\200’ in program解决
- error: stray ‘\200’ in program解决
- 编译错误:stray ‘\357’ in program的解决方法
- QT编译出现stray '\343' in program错误
- 编译错误stray ‘\343’ '\200' in program解决办法
- WPF版的FTP小工具
- 用户权限设计
- JavaScript如何打印对象
- Selenium html之于ul标志代码分析与使用
- 排序算法学习
- 编译错误error: stray ‘\343’ in program的解决
- C语言基础知识(掌握不牢固的地方)
- C#HttpHelper类---苏飞版
- JavaSE 重点知识
- onsubmit方法大全
- HDU1176——免费馅饼
- break while(1)
- javascript:复习匿名函数和闭包
- android.permission.RECEIVE_USER_PRESENT