为了账号安全,请及时绑定邮箱和手机立即绑定

求助 我用# gcc -c max.c -o test.o 时报错. 求高手指教

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# 


正在回答

3 回答

顶,学习的好认真啊。

ykmumism

0 回复 有任何疑惑可以回复我~

找到问题原因了是低级错误少了个"}" .剪贴时没注意. hello.c 源代码没法执行

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

求助 我用# gcc -c max.c -o test.o 时报错. 求高手指教

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信