error: stray ‘\342’ in program如何解决

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

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

说一下,出现此问题的原因是,源代码中存在汉语时的字符,如“”、,等,将其改过来即可!

posted @ 2019-06-29 01:26  坤舆小菜鸡  阅读(510)  评论(0编辑  收藏  举报