Re: [libdnet-devel] Lidnet linking errors
Status: Abandoned
Brought to you by:
dugsong
|
From: lorenzo\.dc\@libero\.it <lor...@li...> - 2006-07-30 09:30:16
|
Hi, I'm not sure but I remember that under cygwin uint16_t and uint32_t a= re defined as u_int16_t and u_int32_t (they are defined in stdint.h, I th= ink). By the way, what compiler are you using? Lorenzo > Hello, > > I just started developing using Libnet Libdnet and Winpcap, using WinXP= > I am trying to use Libnet in order to find the MAC address of the next = hop > on the path to another > machine. > My problems are in compiling the project. > Firstly, i would get errors for the uint16_t and other typdefs which ar= e > used in icmp.h > so i defined them using: > > typedef unsigned char uint8_t; > typedef unsigned short uint16_t; > etc ... > did i have to do this? > > Then when those syntax errors were resolved, i compiled again but i got= > these errors: > > error LNK2019: unresolved external symbol _arp_close referenced in func= tion > _main > error LNK2019: unresolved external symbol _arp_get referenced in functi= on > _main > > for each reference i made to an arp function... > Im also using the libdnet win32 developers pack which provides dnet.lib= . > Shouldnt this be enough? what am i missing? > Thanks for your help! > > Zahy > |