linux - make 命令在 NS 2.35 中不起作用

标签 linux network-programming makefile ns2

我正在尝试使用 NS 2.35 修改 AODV 路由协议(protocol)。我对文件 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

我将如何解决这个问题?

最佳答案


#include <list.h>在默认的 ns2 中被忽略。

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

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


关于linux - make 命令在 NS 2.35 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33798689/

相关文章:

c++ - 如何在不破坏连接的情况下发送和接收 SO_SNDTIMEO 和 SO_RCVTIMEO 的数据?

c++ - 将两个相似的 make 规则减少为一个通用规则

c - 在创建 makefile 时,如何创建调试目标以及正常构建程序的默认目标?

linux - 使用 tee 命令将输出重定向到不存在的目录中的文件

linux - centos 7 : nginx Failed to read PID from file/run/nginx. pid:参数无效

network-programming - 通过 C++ 应用程序设置和控制 IP 摄像机

javascript - 哪些浏览器支持 HTML5 WebSocket API?

xcode - 从 bash 导入 $PATH 到 Xcode

linux - 在cloudlinux中重新启动syslog

c - 进程死亡后的内存泄漏和其他资源