[ns] Problems compiling ns-2.26
Qihe Wang
qwang at ececs.uc.edu
Wed Apr 20 14:48:51 PDT 2005
You may either upgrade ns-2 to version 2.28 or downgrade gcc to version
3.3 or below.
Regards, Qihe
On Tue, 19 Apr 2005, Pepe Barbe wrote:
>
> Hi,
>
> I am having problems compiling ns-2.26 on a Linux box and I get the
> following error:
>
> webcache/webtraf.cc: In member function `virtual int
> WebTrafPool::command(int, const char* const*)':
> webcache/webtraf.cc:415: error: ISO C++ forbids initialization in array new
> make: *** [webcache/webtraf.o] Error 1
>
> I am using g++ version: g++ (GCC) 3.4.3 20041212 (Red Hat 3.4.3-9.EL4).
>
> Any ideas? The same code compiles fine on MacOSX using g++ 3.3.
>
> Thanks,
> Pepe
>
More information about the Ns-users
mailing list