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

Re: NS building problem



Anton,

I had the same problem. What I did was to go to all the troubled lines and 
change the them like this. 

int TcpAgent::window()
{
/* JOE SUN */
/* change this  line */
        /* return (int(cwnd_ < wnd_ ? cwnd_ : wnd_)); */
/* to */
        if (cwnd_ < wnd_ )
                return (int (cwnd_) );
        else
                return ( int (wnd_) );
/* because of some "overload ambiguity */
/* END_JOE_SUN */
}

Not very pretty, but it worked. 

Mingzhou Sun (joe)
RPI
[email protected] said:
> I have problems building ns2-1.2b under Solaris 2.5.

> Compiling the sources (with c++) works fine until "make" reaches 
> "tcp.cc". Then I get the following error message:

> ---------------- tcp.cc: In method `int TcpAgent::window()': 
> tcp.cc:390: ambiguous overload for `bool ? TracedDouble & : double &' 
> tcp.cc:390: candidates are: operator ?:(bool, TracedDouble, 
> TracedDouble) <builtin> tcp.cc:390:                 operator ?:(bool, 
> double, double) <builtin> *** Error code 1 make: Fatal error: Command 
> failed for target `tcp.o' ----------------

> Can this error be a consequence of incorrectly installed "otcl" or 
> "tclcl" units? I had some problems with their installation, too. But 
> I thought I finally got it working all right.

> Thanks for your help.

> -Anton