标签:
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]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()); }
标签:
原文地址:http://blog.csdn.net/u013218720/article/details/45031123