问答详情
源自:4-1 [Linux C语言] 多个源文件分而治之

gcc max.c hello.c -o main.out报错

按照老师说的输入后就报错了,请问是什么原因呢? zn@zn:~/workspace/les2$ ls a.out  hello.c  max.c zn@zn:~/workspace/les2$ gcc max.c hello.c -o main.out max.c: In function ‘max’: max.c:10:5: error: expected declaration or statement at end of input     }       ^ hello.c:1:1: error: expected identifier or ‘(’ before ‘}’ tok

提问者:weixin_慕沐6305626 2018-11-19 19:57

个回答