make命令在NS 2.35中不起作用 [英] make command not working in NS 2.35

查看:97
本文介绍了make命令在NS 2.35中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用NS 2.35修改AODV路由协议.我对文件aodv.cc和aodv.h进行了一些更改.现在,要应用这些更改,我已经在ns-allinone-2.35/ns-2.35文件夹中运行了一个 make 命令,并收到以下错误消息:

I am trying to modify AODV routing protocol using NS 2.35. I have made some changes to the files aodv.cc and aodv.h. Now, to apply these changes I have run a make command inside ns-allinone-2.35/ns-2.35 folder and getting the following error message:

In file included from aodv/aodv_logs.cc:31:0:
./aodv/aodv.h:53:18: fatal error: list.h: No such file or directory
 #include <list.h>
              ^
compilation terminated.
make: *** [aodv/aodv_logs.o] Error 1

我该如何解决?

推荐答案


在默认的ns2中,

#include <list.h>被忽略.


#include <list.h> is ignored in a default ns2.

如果进行了更改,有时可以调用不存在的"list.h".

If changes are made, the non existing 'list.h' can sometimes be called.

您可以将其注释掉:// #include <list.h>

这篇关于make命令在NS 2.35中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆