【问题标题】:make command not working in NS 2.35make 命令在 NS 2.35 中不起作用
【发布时间】:2016-02-21 06:55:22
【问题描述】:

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

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

我将如何解决这个问题?

【问题讨论】:

  • 这与make没有任何关系

标签: linux network-programming makefile ns2


【解决方案1】:

#include &lt;list.h&gt; 在默认 ns2 中被忽略。

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

您可以将其注释掉:// #include &lt;list.h&gt;


【讨论】:

    【解决方案2】:
    #include <list.h> 
    

    将此代码添加到 aodv.cc

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-07-20
      • 2014-08-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-06
      • 1970-01-01
      相关资源
      最近更新 更多