[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with ns-2.1b6-current's channel.cc



The current snapshot need lots of patches in order to compile on win98 (I
was using vc5.0). Many of the wireless simulations have: 

	new (MobileNode *)[size]; 

which seems not supported by vc. Please change them to 
"new MobileNode*[size]". This happens in channel.cc and gridkeeper.cc. 
Also, makefile.vc is not up-to-date. Its ptypes2tcl entry should be
updated, and 
gridkeeper.o rap/raplist.o rap/rap.o rap/media-app.o rap/utilities.o
should be added. 

Also note that many test suites do NOT pass under windows. I have looked
through a few of them and suspect that all these errors are due to
floating point errors, but need to verify it carefully. 

- Haobo

On Sat, 22 May 1999, [iso-8859-1] Christian J�nsson wrote:

> I can't compile ns-2.1b6-current, as of today, on Win `98 using MSVC++ 6.0p2. One main problem is the following line in channel.cc:
> 
>      MobileNode **outlist = new (MobileNode *)[size];
> 
> The problem is this:
> 
> channel.cc(164) : error C2143: syntax error : missing ';' before '['
> channel.cc(164) : error C2143: syntax error : missing ';' before '['
> 
> Any hints?
> 
> I'll go test with egcs-1.1.2 under linux...
> 
> /ChJ
>