求助 我用# 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#?
2015-07-30
找到問題原因了是低級錯誤少了個"}" .剪貼時沒注意. hello.c 源代碼沒法執(zhí)行