【问题标题】:Error adding a OLSR to ns2.35 undefined reference to `OLSR_pkt::offset_'将 OLSR 添加到 ns2.35 对“OLSR_pkt::offset_”的未定义引用时出错
【发布时间】:2016-05-23 17:38:58
【问题描述】:

我正在尝试在 ns2.35 中添加协议 olsr。当我尝试“制作”ns2 时,出现以下错误。

trace/cmu-trace.o:在函数CMUTrace::format_olsr(Packet*, int)': cmu-trace.cc:(.text+0x1eb1): undefined reference toOLSR_pkt::offset_' collect2:错误:ld 返回 1 个退出状态 make: *** [ns] 错误 1

我按照链接http://elmurod.net/en/index.php/archives/157中给出的步骤添加了olsr协议

请帮助我克服这个错误。 提前致谢。

【问题讨论】:

    标签: networking network-protocols ns2


    【解决方案1】:

    如何 ns-2.35 + olsr:

    $ tar xvf ns-allinone-2.35_gcc482.tar.gz
    

    https://drive.google.com/file/d/0B7S255p3kFXNSGJCZ2YzUGJDVk0/view?usp=sharing

    $ cd ns-allinone-2.35/
    $ patch -p0 < umolsr-ns235_v1.0-2014.patch
    

    https://drive.google.com/file/d/0B7S255p3kFXNeVZhWFVVZlJnUEU/view?usp=sharing

    $ ./install
    $ cd ns-2.35/
    $ cp ns ns-olsr
    $ sudo cp ns-olsr /usr/local/bin/
    .... Then you can do $ ns-olsr ddebbie90-scenario.tcl
    

    仿真示例:umolsr-examples-05.2016.tar.gz https://drive.google.com/file/d/0B7S255p3kFXNWXlHRmxQV0hpWXM/view?usp=sharing

    ?有什么问题吗?然后请指定您的操作系统:

    1) $ uname -m
    2) $ cat /etc/issue
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-10-12
      • 1970-01-01
      • 2014-08-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-05-11
      相关资源
      最近更新 更多