NS2 compilation errror in ubuntu
"ns2" is usually built from source code, when you want to add an extra protocol. All ~300 patches (extra protocols) https://drive.google.com/drive/folders/0B7S255p3kFXNZ2lWZDBRSW40Q00?usp=sharing
'ns-2.35' Ubuntu 17.10 example: sudo apt install g++-5
→ I.e. no later than g++-5 (<=5.4) can be used. Note : You can have as many gcc versions as you want, installed at the same time.
tar xvf ns-allinone-2.35_gcc5.tar.gz // 2014 - 2017 update → →
→ https://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing
cd ns-allinone-2.35/
export CC=gcc-5 CXX=g++-5 && ./install
// if Ubuntu 16.04, the build command is './install' only
cd ns-2.35/
sudo make install
The ~2500 simulations https://drive.google.com/drive/folders/0B7S255p3kFXNSmRYb2lGcDRUdWs?usp=sharing