Re: [ns] implementation of new protocol
hi All, I'm trying to compile some .cc files where i've written my algorithm and am getting this error. libcygwin.o undefined reference to winm...@16 I dono why am getting this error..Plz help me to fix it. On Fri, Apr 16, 2010 at 12:33 AM, Daniel Zvolensky zw...@centrum.cz wrote: Hi everybody I am trying implement my own MAODV protocol into NS-2.34. I already have done structure of packets, routing tables and now I would like programme communication between nodes. So I created “class node” in file “node.h” where I define the IP address and seq. num of node and functions such as “void recv(Packet*, Handler*)”. In file “node.cc” in function “void recv(Packet* p, Handler* h)” I put following code: void node::recv(Packet* p, Handler* h) { struct hdr_maodv* maodvh = HDR_MAODV(p); struct hdr_ip* iph = HDR_IP(p); } ..and when I make compilation, the following error appears: In function ‘hdr_ip::access(Packet const*)’: node.cc: (.text.ZN6hdr_ip6accessEPK6Packet[hdr_ip::access(Packet const*)]+0×7): undefined reference to ‘hdr_ip::offset_’ collect2: ld returned 1 exit status Could you help me? Do you have any idea where could be a problem? Regards Daniel -- Regards yogalakshmi
[ns] Error while doing make
Hi All, Am getting this error when i did the following commands ./configure make clean make -Wl,--no-whole-archive ../tclcl-1.19/libtclcl.a ../otcl/libotcl.a ../lib/libtk8.4.a ../lib/libtcl8.4.a common/agent.o:agent.cc:(.text$_ZN7AppDataD2Ev[AppData::~AppData()]+0xb): undefined reference to `vtable for AppData' *common/agent.o:agent.cc: * (.text$_ZN7AppDataC2E11AppDataType[AppData::AppData(AppDataType)]+0x8): *undefined reference to `vtable for AppData'* common/agent.o:agent.cc:(.text$_ZN7AppDataC2ERS_[AppData::AppData(AppData)]+0x8): *undefined reference to `vtable for AppData'* Creating library file: libns.dll.a collect2: ld returned 1 exit status make: *** [libns.dll] Error 1 But nothing is in agent.cc files like vtable.. I dono how to fix it.. Its urgent plz help me soon. -- Regards yogalakshmi
Re: [ns] RED simulation in IEEE802.11 Access Points needs link delay and bandwith parameters
Hi, I'm doing project in Secure localization of WSN. I'm trying to use encryption technique for security purpose. I've to deploy keys with the nodes while it is being created. Can anyone tel me in node.cc or mobilenode.cc file, which method is called when $ns node is executed. Thanks in advance. -- Regards, Yogalakshmi
Re: [ns] Help: accessing contents of data payload in NS2
Hi, I'm also want to know how to access the contents of the data payload. Please help me too.. -- Regards, yogalakshmi