cd ns-allinone-2.31/
export CC=gcc34 CXX=g++34 && ./install
If configuring in ns-2.31/ : export CC=gcc34 CXX=g++34 && ./configurecd Downloads/
sudo gdebi compat-gcc34-3.4.6-ubuntu1204-1_amd64.deb compat-gcc-34-c++_3.4.6-20_amd64.debexport CC=gcc34 CXX=g++34 && ./install in ns-allinone folder gave the following error at the end
make: g++34: Command not found
make: *** [embedded-tcl.o] Error 127
tclcl-1.19 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems3- I jumped to the ns2.31 folder which in my case is ns-2.31dtsncc and ran export CC=gcc34 CXX=g++34 && ./configure. It appeared to run correctly but when I tried the make command later it gave the following error
make: g++34: Command not found
make: *** [utils_ns.o] Error 1274- Make depend gave the followig error
/bin/sh: 1: Syntax error: Bad fd number
make: *** [depend] Error 25- More details of the error are available at https://www.dropbox.com/s/3fu9sz6em5dgkfs/compiler%20error?dl=0
6- I have been trying this for so long but have been failing. What I'm actually trying to do is add a folder to my ns2.31 which was given to me by my senior. The folder is available at https://www.dropbox.com/s/gmmp0dj6pxgapeb/ns-2.31dtsncc.tar.gz?dl=0
Please let me know if you can help. I will greatly appreciate it. Thank you.ndtsn/ndtsn.cc: In constructor `NDtsnAgent::NDtsnAgent()':
ndtsn/ndtsn.cc:48: error: `wnd_' was not declared in this scope
ndtsn/ndtsn.cc: In member function `char* NDtsnAgent::get_bitmap_string(int*)':
.
ndtsn/ndtsn.cc: In member function `virtual int NDtsnAgent::window()':
ndtsn/ndtsn.cc:573: error: `wnd_' was not declared in this scope
ndtsn/ndtsn.cc: In member function `virtual double NDtsnAgent::windowd()':
ndtsn/ndtsn.cc:578: error: `wnd_' was not declared in this scopeexport CXX=g++-4.4 && ./configure
umair@umair-VirtualBox:~$ which gcc34/usr/bin/gcc34root@umair-VirtualBox:/home/umair# which g++-4.4/usr/bin/g++-4.4
root@umair-VirtualBox:/home/umair# dpkg --list | grep compilerii g++ 4:4.8.2-1ubuntu6 amd64 GNU C++ compilerii g++-4.4 4.4.7-8ubuntu1 amd64 GNU C++ compilerii g++-4.8 4.8.4-2ubuntu1~14.04.3 amd64 GNU C++ compilerii gcc 4:4.8.2-1ubuntu6 amd64 GNU C compilerii gcc-4.4 4.4.7-8ubuntu1 amd64 GNU C compilerii gcc-4.8 4.8.4-2ubuntu1~14.04.3 amd64 GNU C compilerii hardening-includes 2.5ubuntu2.1 all Makefile for enabling compiler flags for security hardeningii libllvm3.6:amd64 1:3.6-2ubuntu1~trusty1 amd64 Modular compiler and toolchain technologies, runtime libraryii libxkbcommon0:amd64 0.4.1-0ubuntu1 amd64 library interface to the XKB compiler - shared library
root@umair-VirtualBox:/home/umair/ns-allinone-2.31/ns-2.31dtsncc/dtsncc-scripts# ns dtsncc.tcl invalid command name "Agent/GPSR" while executing"Agent/GPSR set planar_type_ 1 " (file "dtsncc.tcl" line 233)
1) gpsr is present in the Makefile.in (and Makefile)
156: gpsr/gpsr_neighbor.o \
157: gpsr/gpsr_sinklist.o \
158: gpsr/gpsr.o \
2) tcl/lib/ :
lib/ns-lib.tcl:618: gpsr {
lib/ns-lib.tcl:619: set ragent [$self create-gpsr-routing-agent $node]
lib/ns-mobilenode.tcl:217: set gpsronly [string first "GPSR" [$agent info class]]
lib/ns-mobilenode.tcl:218: if {$gpsronly != -1 } {
lib/ns-packet.tcl:184: GPSR