make file 出错 No rule to make target 'g++',needed by 'main'.S
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/25 05:02:39
make file 出错 No rule to make target 'g++',needed by 'main'.Stop
这是我的makefile
OBJS = main.o CATSvrMgr.o CJobSysEpoll.o CTcpEpollMgr.o CThreadBase.o
CC = g++
main : $(OBJS) \
$(CC) -g -o main $(OBJS)
main.o : CATSvrMgr.h
CATSvrMgr.o : CATSvrMgr.h CJobSysEpoll.h
CJobSysEpoll.o : CJobSysEpoll.h CATSvrMgr.h
CTcpEpollMgr.o : CTcpEpollMgr.h
CThreadBase.o : CThreadBase.h
.PHONY : clean
clean : \
rm -f *.o temp
当 执行 make 命令后 所有的.o文件都能产生,但会出现上面的错误,没有产生最终可执行main文件,且make clean 也不成功
这是我的makefile
OBJS = main.o CATSvrMgr.o CJobSysEpoll.o CTcpEpollMgr.o CThreadBase.o
CC = g++
main : $(OBJS) \
$(CC) -g -o main $(OBJS)
main.o : CATSvrMgr.h
CATSvrMgr.o : CATSvrMgr.h CJobSysEpoll.h
CJobSysEpoll.o : CJobSysEpoll.h CATSvrMgr.h
CTcpEpollMgr.o : CTcpEpollMgr.h
CThreadBase.o : CThreadBase.h
.PHONY : clean
clean : \
rm -f *.o temp
当 执行 make 命令后 所有的.o文件都能产生,但会出现上面的错误,没有产生最终可执行main文件,且make clean 也不成功
main : $(OBJS)
tab键$(CC) -g -o main $(OBJS)
makefile写错了吧 应该没有\
另起一行最前面放一个tab键吧
tab键$(CC) -g -o main $(OBJS)
makefile写错了吧 应该没有\
另起一行最前面放一个tab键吧
make file 出错 No rule to make target 'g++',needed by 'main'.S
vpath:make:*** No rule to make target `file1.h',needed by `m
make:***no rule to make target 'gdut2410'.stop.怎么解决
make menuonfig时提示:make:*** No rule to make target `menuconfi
Linux 内核编译出错:make zimage命令;错误提示:make :***No rule to make tar
make:Makefile:No such file or directory make:*** No rule to
在cygwin中输入make micaz sim后出现make:***no rules to make target '
let's make it a rule that no language __English should be sp
关于 make it a rule to .
make rule 搭配什么?
I generally make it a rule to be up by to 7 read English.帮我分
make known by telling the person's name to other