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

Re: [ns] installation problems of snapshot



We know that it is a basic requirement of c++ an overriding function should not only change the return type.
The version I used is ns-2-snapshot-20010412.
----- Original Message -----
Sent: Friday, April 13, 2001 11:47 PM
Subject: Re: [ns] installation problems of snapshot

As far as I know, Visual C++ won't allow you to suppress errors on return
type differences for virtual functions.  The return type for all virtual functions
should be the same in order to get it to work correctly.  Which version of
ns were you trying to install?

At 03:09 PM 4/13/2001 +0800, you wrote:
When I installed the snapshot on windows, the following error were encountered:
 
wireless-phy.h(75) : error C2555: 'WirelessPhy::node' : overriding virtual
ion differs from 'Phy::node' only by return type or calling convention
        phy.h(71) : see declaration of 'Phy'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.

 
Is it possible suppress error on virtual functions overriding with only return type difference?