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

Reply via email to