LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 602|回复: 2

make问题紧急求助!!!

[复制链接]
发表于 2004-12-27 03:22:35 | 显示全部楼层 |阅读模式
我用make出现下列提示,请问如何解决:

$ make
"/usr/home/xxb/myprog/msg4/Makefile", line 9: Need an operator
"/usr/home/xxb/myprog/msg4/Makefile", line 11: Need an operator
"/usr/home/xxb/myprog/msg4/Makefile", line 14: Need an operator
"/usr/home/xxb/myprog/msg4/Makefile", line 16: Need an operator
"/usr/home/xxb/myprog/msg4/Makefile", line 18: Need an operator
"/usr/home/xxb/myprog/msg4/Makefile", line 20: Need an operator
"/usr/home/xxb/myprog/msg4/Makefile", line 23: Need an operator
make: fatal errors encountered -- cannot continue
$
 楼主| 发表于 2004-12-27 03:23:31 | 显示全部楼层
Makefile如下:

# Makefile
# To build for "msgsrv.c" and "msgsend.c"
# The executable files are "msgsrv" and "msgsend"



msgsrv        : msgsrv.o wrapfunc.o errlog.o
gcc msgsrv.o wrapfunc.o errlog.o -o msgsrv
msgsend        : msgsend.o wrapfunc.o errlog.o
gcc msgsend.o wrapfunc.o errlog.o -o msgsend

msgsrv.o : msgsrv.c ourh.h
gcc -c msgsrv.c -o msgsrv.o
msgsend.o : msgsend.c ourh.h
gcc -c msgsend.c -o msgsend.o
wrapfunc.o : wrapfunc.c ourh.h
gcc -c wrapfunc.c -o wrapfunc.o
errlog.o : errlog.c ourh.h
gcc -c errlog.c -o errlog.o

clean :
rm -f *.o

# end Makefile
发表于 2004-12-27 13:35:54 | 显示全部楼层
make认为每一行以tab开始
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表