[ns] error: field `ifhead_' has incomplete type
Jeab
aboutjeab at hotmail.com
Mon Jun 23 03:07:55 PDT 2008
Hello,
I would like to develop a framework to test MAC protocols for wireless sensor network. I am currently modeling my own PHY, MAC, LL, Channel layer, but still have a problem in compilation.
Basically, I modified class &header files in NS2.33 as follow:
mac/channel --> wsn/wsn-channel
mac/phy --> wsn/wsn-phy
mac/mac --> wsn/wsn-mac
mac/ll --> wsn/wsn-ll
The problem is my if_head_wsn pointer cannot be recognized in wsn-channel.h even if it is already defined in wsn-phy.h.
wsn-phy.h
LIST_HEAD(if_head_wsn, WSNPhy); //Line.58 in phy.h
wsn-channel.h
struct if_head_wsn ifhead_; //Line.64 in channel.h
./wsn/wsn-channel.h:19: error: field `ifhead_' has incomplete type <--error message
As far as I understood, if_head is a pointer to a LIST_HEAD structure, as defined in ~/ns/lib/bsd-list.h. Should it be newly declared in order to be used in other classes? I am not sure if my question is described clearly. Pls suggest, I do appreciate for any idea.
Cheers, Jeab
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
More information about the Ns-users
mailing list