root@super-X10DAi:/home/super/workspace# ls
a.out hello.c max.c
root@super-X10DAi:/home/super/workspace# gcc -c max.c -o test.o
max.c: In function ‘max’:
max.c:7:5: error: expected declaration or statement at end of input
}
^
root@super-X10DAi:/home/super/workspace#
找到问题原因了是低级错误少了个"}" .剪贴时没注意. hello.c 源代码没法执行