Chinaunix首页 | 论坛 | 博客
  • 博客访问: 40183
  • 博文数量: 8
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 14
  • 用 户 组: 普通用户
  • 注册时间: 2013-09-23 11:25
文章分类
文章存档

2015年(2)

2014年(4)

2013年(2)

我的朋友

分类: C/C++

2014-10-07 22:23:36

从网上拷贝了一份比较简单的代码,编译时遇见以下问题:

test_getopt.c:9:35: error: stray ‘\342’ in program
test_getopt.c:9:35: error: stray ‘\200’ in program
test_getopt.c:9:35: error: stray ‘\235’ in program
test_getopt.c:12:3: error: stray ‘\342’ in program
test_getopt.c:12:3: error: stray ‘\200’ in program
test_getopt.c:12:3: error: stray ‘\230’ in program
test_getopt.c:12:3: error: stray ‘\342’ in program
test_getopt.c:12:3: error: stray ‘\200’ in program
test_getopt.c:12:3: error: stray ‘\231’ in program
test_getopt.c:13:4: error: stray ‘\342’ in program
test_getopt.c:13:4: error: stray ‘\200’ in program

说一下,出现此问题的原因是,源代码中存在汉语时的字符,如“”、,等,将其改过来即可!
阅读(1705) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~