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

R: Re:[ns] ns-2.1b8a-win installation problem



Tue, Jul 10, 2001
Hi Vijay D,
I wish to rectify what I wrote this morning: I tried with the patch ns-2.1b8a-win.tar.gz and this time I was success: the problem was that before I didn't use this patch, but the release
ns-allinone-2.1b8a.tar.gz and the ns-snapshot-20010709; I also discovered what was the problem: these last releases contains a problematic version (if I compile on Windows) of the file PHY.H. This file was modified in the patch ns-2.1b8a-win.tar.gz.
In ns-allinone-2.1b8a.tar.gz and ns-src-snapshot.tar.gz, the file phy.h contains this line:

 virtual Node* node(void) const { return node_; }

Instead, in ns-2.1b8a-win.tar.gz, this line has been modified as follows in the same file:

 // virtual Node* node(void) const { return node_; }
 // subclass wireless-phy returns MobileNode*
 // Seems windows compiler doesn't like Virtual functions
 // returning diff. data types (Node and MobileNode)
 
 Node* node(void) const { return node_; }

This difference is crucial, as experimented.
Thanks!
 
 
-----Messaggio Originale-----
Data invio: marted� 10 luglio 2001 8.54
Oggetto: R: Re:[ns] ns-2.1b8a-win installation problem

 
Tue, Jul 10, 2001
I thanks Vijay D sincerely, but I wish to informe that I used the patch called ns-2.1b8a-win.tar.gz, not a previous ns2 release, but the building process (on a Windows98 platform and with the NMAKE tool provided by Microsoft Visual C++ 5) failed yet.
I installed (I think successfully) Tcl8.3.2/Tk8.3.2/Otcl-1.0a7/Tclcl-1.0b11, but when I am try to build (with Visual C++ 5) ns-2.1b8a on Windows98 machine, I get this error message during the building process:

wireless-phy.h(75) : error C2555: 'WirelessPhy::node' : overriding virtual function differs from 'Phy::node' only by return type or calling convention
NMAKE : fatal error U1077: 'C:\PROGRAMMI\DEVSTUDIO\VC\BIN\cl.exe' : return code
'0x2'
Stop.
 
Please send me any suggestion in this respect: I will be very grateful to you!!!
Thanks



Davide Oscar Nitti
 
 
-----Messaggio Originale-----
Da: Vijay D
Data invio: luned� 9 luglio 2001 20.31
Oggetto: Re:[ns] ns-2.1b8a installation problem

Hi,
Use the ns-dist for win32. I tried it and it compiles without any problem.
 
You need to download the windows release
which has the patches and is called ns-2.1b8a-win.tar.gz and is available
directly from http://www.isi.edu/nsnam/dist
so download that version and replace it with the ns version you are using
in the allinone pkg.
-Vijay


Get your FREE download of MSN Explorer at http://explorer.msn.com