sudo apt-get install g++-4.3
a) Is OK, will install gcc and g++ version 4.3 .
b1) the next command to be done : cd ns-allinone-2.34/
b2) and then : CC=gcc-4.3 CXX=g++-4.3 ./install
Also OK, will use version 4.3 for some files, not all.
But why not use the default gcc / g++ = version 4.4.1 ?
I don't remember any problems with ns-2.34 and ver. 4.4.1
on Ubuntu 9.10 Karmic. Where did you get the above information ? ?
Anyway here it is ...
The only safe method is to do :
1) Delete 'Makefile' and 'config.status' in the applications in question ..
... ( if the files are present.)
2) Edit the ' Makefile.in ' in each application from
CC = @CC@
CPP = @CXX@
CC = gcc-4.3
CPP = g++-4.3
Other info : LQ Search → 'Tag Name' = ns2