Ubuntu 11.04 : Not the best choice for building ns-allinone-2.34.
But the 32bits 11.04 can be used. ( 10.04 LTS is better.)
( If it's a 64bits 11.04 : Any compiler will create "ns buffer overflow".
AFAIK.)
"Erlend's porting to gcc4.5"
http://erl1.wordpress.com/2011/05/12...-ubuntu-11-04/
.. is probably OK, but the slightest change (in g++ ?) by an update
may require further edits in ns-allinone-2.34.
The proof way is: Use a gcc/g++ version 3.4.6 compiler, built for 11.04 : See *EDIT
https://docs.google.com/uc?id=0B7S25...nload&hl=en_US
> gcc34-compat-3.4.6_i386.deb
https://docs.google.com/uc?id=0B7S25...nload&hl=en_US
> g++34-compat-3.4.6_i386.deb
Start from scratch in a new directory, no edits in ns, etc. :
cd ns-allinone-2.34/ && export CC=gcc34 CXX=g++34 && ./install
More info : LQ Search → → Keyword = ns-allinone
http://www.linuxquestions.org/questions/search.php
*EDIT : Now (a month later), g++ 3.4.6 isn't working any more.
The only usable seems to be gcc/g++ version 4.2.4 :
http://www.linuxquestions.org/questi...04-a-904827/#3
..