Problem with the installation of ns2.35 on my ubuntu 16.04
Greating to all !
Since this morning, I am trying to install ns3.35 on my ubuntu 16.04, but unfortunately It is not working. After some time, this message appears : In file included from linkstate/ls.cc:67:0: linkstate/ls.h: In instantiation of ‘void LsMap<Key, T>::eraseAll() [with Key = int; T = LsIdSeq]’: linkstate/ls.cc:396:28: required from here linkstate/ls.h:137:25: error: ‘erase’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] void eraseAll() { erase(baseMap::begin(), baseMap::end()); } ^ linkstate/ls.h:137:25: note: declarations in dependent base ‘std::map<int, LsIdSeq, std::less<int>, std::allocator<std::pair<const int, LsIdSeq> > >’ are not found by unqualified lookup linkstate/ls.h:137:25: note: use ‘this->erase’ instead Makefile:93 : la recette pour la cible « linkstate/ls.o » a échouée make: *** [linkstate/ls.o] Erreur 1 Ns make failed! Please I am waiting for your contributions. This program will is very important for me to conduct my academic project, that the topic is : clustering techniques in WSNs. Thanks for your various contributions |
Welcome to LQ.
Please use the Oct 2014 updated "ns-allinone-2.35_gcc482.tar.gz" https://drive.google.com/file/d/0B7S...ew?usp=sharing ... updated to use gcc-4.4 ... 5.3 . `g++-5´ may fail with Ubuntu, then use v4.9 : sudo apt install g++-4.9 cd ns-allinone-2.35/ export CC=gcc-4.9 CXX=g++-4.9 && ./install Using gcc-5, g++-5 : cd ns-allinone-2.35/ ./install cd ns-2.35/ sudo make install ( 'make install' will copy 'ns' to /usr/local/bin/ ) cp ns ns-orig ( a backup, and to be used for default simulations ) sudo cp ns-orig /usr/local/bin/ I.e. if you later add a new protocol, all default simulations can still be run like : $ ns-orig simulation.tcl - |
Quote:
. http://www.mannasim.dcc.ufmg.br/ . https://www.thinkmind.org/download.p...015_4_40_30078 . https://github.com/paultsr/ns-allinone-2.35 >>> $ git clone https://github.com/paultsr/ns-allinone-2.35 (2014 update) Example 2. 'LEACH' http://www.linuxquestions.org/questi...4175556129/#11 - |
All times are GMT -5. The time now is 08:13 AM. |