ns2.35安装过程中出现错误ns.exe找不到

来源:互联网 发布:java进程阻塞 编辑:程序博客网 时间:2024/06/02 19:29

cd ns-allinone-2.35/ns.2.35

./configure make


。。。

linkstate/ls.cc:396:28:   required from here

linkstate/ls.h:137:58: 错误:‘erase’ was not declared in this scope, and no decl                                                                                                                arations were found by argument-dependent lookup at the point of instantiation [                                                                                                                -fpermissive]
  void eraseAll() { erase(baseMap::begin(), baseMap::end()); }
                                                          ^
linkstate/ls.h:137:58: 附注:declarations in dependent base ‘std::map<int, LsIdS                                                                                                                eq, std::less<int>, std::allocator<std::pair<const int, LsIdSeq> > >’ are not fo                                                                                                                und by unqualified lookup
linkstate/ls.h:137:58: 附注:use ‘this->erase’ instead
Makefile:93: recipe for target 'linkstate/ls.o' failed

make: *** [linkstate/ls.o] Error 1




解决办法:

a.Go to ns-allinone-2.35/ns-2.35/linkstate/b.Now edit ls.hIn line number 137, in place of void eraseAll() { erase(baseMap::begin(), baseMap::end()); }make it void eraseAll() { this->erase(baseMap::begin(), baseMap::end()); }

0 0
原创粉丝点击