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

来源:4-1 [Linux C语言] 多个源文件分而治之

weixin_慕沐6305626

2018-11-19 19:57

按照老师说的输入后就报错了,请问是什么原因呢? 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

写回答 关注

2回答

Linux C语言编程基本原理与实践

本视频教程介绍C语言基本工作原理以及适用与C的实际开发方式

203979 学习 · 451 问题

查看课程

相似问题