首页 > 其他 > 详细

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

时间:2015-04-13 20:54:40      阅读:571      评论:0      收藏:0      [点我收藏+]

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.h
In line number 137, in place of void eraseAll() { erase(baseMap::begin(), baseMap::end()); }
make it void eraseAll() { this->erase(baseMap::begin(), baseMap::end()); }

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

原文:http://blog.csdn.net/u013218720/article/details/45031123

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!