程序出现make: *** [ns] Error 1错误

sssssssssdfssdfsdf 2011-06-21 02:37:32
各位大侠 有谁知道make: *** [ns] Error 1错误怎么解决呢?是哪里出现了问题呢?
有知道的请帮帮小妹吧,感激不尽!!
...全文
41476 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
wenkai168 2012-04-07
  • 打赏
  • 举报
回复 3
先make clean && make试试,如果还出问题就是Makefile有问题了
yfk 2012-03-19
  • 打赏
  • 举报
回复
确保所有的依赖库都已下载
在Makefile中设置所有依赖库的include和lib文件目录
JoeBlackzqq 2012-03-18
  • 打赏
  • 举报
回复
make[1]: *** No rule to make target `all'. Stop.

你是不是执行了“make all"呀,但是makefile中却没有all对应的规则!!
ayiya1 2011-12-29
  • 打赏
  • 举报
回复
怎么改正的啊,楼主。。[Quote=引用 4 楼 sssssssssdfssdfsdf 的回复:]
之前谢谢你哈,那个问题我改正了,但是又出现了新的问题,这又是怎么回事呢
make[1]: Entering directory `/home/Owner/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest'
make[1]: *** No rule to make target `all'. Stop.
make[1]: Lea……
[/Quote]
sssssssssdfssdfsdf 2011-06-22
  • 打赏
  • 举报
回复
那请问应该怎么办呢,需要重装ns2吗
justkk 2011-06-21
  • 打赏
  • 举报
回复
貌似makefile 有问题啊
sssssssssdfssdfsdf 2011-06-21
  • 打赏
  • 举报
回复
之前谢谢你哈,那个问题我改正了,但是又出现了新的问题,这又是怎么回事呢
make[1]: Entering directory `/home/Owner/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest'
make[1]: *** No rule to make target `all'. Stop.
make[1]: Leaving directory `/home/Owner/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest'
make[1]: Entering directory `/home/Owner/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/Owner/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec'
make[1]: Entering directory `/home/Owner/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/Owner/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/epa'
make[1]: Entering directory `/home/Owner/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/Owner/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr'
make[1]: Entering directory `/home/Owner/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/Owner/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/ucb'
justkk 2011-06-21
  • 打赏
  • 举报
回复
Application::recv_msg(int, char const*)
那就是没有实现这个函数啊
sssssssssdfssdfsdf 2011-06-21
  • 打赏
  • 举报
回复
恩,是有的。这是console中的信息
apps/app.o(.rdata$_ZTV11Application+0x38):app.cc: undefined reference to `Application::recv_msg(int, char const*)'
apps/telnet.o(.rdata$_ZTV9TelnetApp+0x38):telnet.cc: undefined reference to `Application::recv_msg(int, char const*)'
tools/trafgen.o(.rdata$_ZTV16TrafficGenerator+0x38):trafgen.cc: undefined reference to `Application::recv_msg(int, char const*)'
trace/traffictrace.o(.rdata$_ZTV12TrafficTrace+0x38):traffictrace.cc: undefined reference to `Application::recv_msg(int, char const*)'
tools/pareto.o(.rdata$_ZTV11POO_Traffic+0x38):pareto.cc: undefined reference to `Application::recv_msg(int, char const*)'
tools/expoo.o(.rdata$_ZTV13EXPOO_Traffic+0x38):expoo.cc: more undefined references to `Application::recv_msg(int, char const*)' follow
collect2: ld returned 1 exit status
make: *** [ns] Error 1
请问有办法改正吗
justkk 2011-06-21
  • 打赏
  • 举报
回复
在这个错误之前应该还有别的错误吧

5,530

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 模式及实现
社区管理员
  • 模式及实现社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧