[Winpcap-users] undefined reference to certain winpcap functions
Gianluca Varenni
gianluca.varenni at cacetech.com
Wed Aug 23 15:46:49 GMT 2006
Due to some compilation issues, those listed functions are not available and
exported in the stub file libwpcap.a shipped with the developer's pack of
WinPcap 3.1 (but they are exported in the wpcap.lib file for Microsoft VC
compilers). In order to use those functions with Cygwin/mingw, you need to
use the developer's pack of WinPcap 4.0 alpha 1.
Have a nice day
GV
----- Original Message -----
From: usman Mahmood
To: winpcap-users at winpcap.org
Sent: Tuesday, August 22, 2006 2:31 AM
Subject: [Winpcap-users] undefined reference to certain winpcap functions
hello,
i am using winpcap 3.1 with mingw on WinXP everything is compiling fine
until i use the following functions:
pcap_open()
pcap_findalldevs_ex()
pcap_createsrcstr()
pcap_parsesrcstr()
pcap_setsampling()
pcap_remoteact_accept()
pcap_remoteact_list()
pcap_remoteact_close()
pcap_remoteact_cleanup()
after reading the winpcap FAQ's amonst other things, i found out that i had
to add #define HAVE_REMOTE before including pcap.h
this did reduce the number of errors however i still get undefined
references to certain pcap functions for example:
undefined reference to pcap_createsrcstr(...)
I am linking to the correct librarys and after reading the winpcap FAQ's
again i found out that these functions are not exported from wpcap.dll.
anyway my problem is that how do i use these functions with out getting any
of the undefined reference errors.
thank you.
_______________________________________________
Winpcap-users mailing list
Winpcap-users at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users
More information about the Winpcap-users
mailing list