码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-04-13 20:55:50      阅读:840      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!