读书人

GCC安装有关问题

发布时间: 2012-03-01 10:25:47 作者: rapoo

GCC安装问题
我按照网上教程安装好了GCC,但运行编译hello.c,报错:
hello.c: In function `main':
hello.c:4: error: stray '\161' in program
hello.c:4: error: stray '\176' in program
hello.c:4: error: `Start' undeclared (first use i
hello.c:4: error: (Each undeclared identifier is
hello.c:4: error: for each function it appears in
hello.c:4: error: syntax error before "to"
hello.c:4: error: stray '\161' in program
hello.c:4: error: stray '\177' in program
hello.c:6:2: warning: no newline at end of file
请高手指点一下,急啊

[解决办法]
printf里面的引号是中文的,改成英文的应该就好了

读书人网 >C++

热点推荐