Hi all,

I was trying to compile the ns2 package after changing a few lines in  
/mac/arp.cc. It gave the following errors:

--------------------------------------------
In file included from mac/channel.h:50,
                  from mac/phy.h:60,
                  from mac/mac.h:48,
                  from mac/arp.cc:52:
mac/wireless-phy.h:65: error: invalid use of undefined type `struct Phy'
mac/phy.h:57: error: forward declaration of `struct Phy'
mac/wireless-phy.h:65: warning: `class WirelessPhy' has virtual functions  
but non-virtual destructor
mac/wireless-phy.h: In member function `Node* WirelessPhy::node() const':
mac/wireless-phy.h:74: error: `node_' undeclared (first use this function)
mac/wireless-phy.h:74: error: (Each undeclared identifier is reported only  
once for each function it appears in.)
mac/wireless-phy.h: In member function `int WirelessPhy::initialized()':
mac/wireless-phy.h:136: error: `node_' undeclared (first use this function)
mac/wireless-phy.h:136: error: `uptarget_' undeclared (first use this  
function)
mac/wireless-phy.h:136: error: `downtarget_' undeclared (first use this  
function)
make: *** [mac/arp.o] Error 1
-----------------------------------------------

The problem is the 'make' can successfully pass the compiling if no  
changes has been made to the file 'apr.cc'. However, it would give the  
above error once the file is updated (without any contents changed.)

Has anybody had the same problem before? I would appreciate very much for  
any suggestions.

Thanks a lot!

Mo

Reply via email to