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

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



OK, thanks. I took the OBJ_CC from Makefile.in and inserted that into makefile.vc. Hmm, strange that (whatever *) does not work... Anyway, channel.cc and gridkeeper compile now.

But, with rap/utilities.h, I suggest includeing <siting.h> instead of strings.h. Furtermore, is snprintf really necessary in rap/media-app.cc(341) or could it be changed into something more portable? 

/ChJ

----- Original Message ----- 
From: Haobo Yu <[email protected]>
To: Christian J�nsson <[email protected]>
Cc: Ns Mailing List <[email protected]>
Sent: Saturday, May 22, 1999 11:56 PM
Subject: 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
> > 
> 
>