Michael, I tried that and I get the same error:
configure:16538: gcc -o conftest.exe -fPIC -fPIC -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_builddir)/airframe/include -I$(top_srcdir)/airframe/include -I/C:/WpdPack/Include/pcap -L/C:/WpdPack/Lib/x64 conftest.c -lwpcap >&5 conftest.c:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default] /* confdefs.h */ ^ /usr/lib/gcc/x86_64-pc-cygwin/4.8.1/../../../../lib/wpcap.lib(wpcap.dll.b):(.text+0x2): relocation truncated to fit: R_X86_64_32 against symbol `__imp_pcap_open_offline' defined in .idata$5 section in /usr/lib/gcc/x86_64-pc-cygwin/4.8.1/../../../../lib/wpcap.lib(wpcap.dll.b) collect2: error: ld returned 1 exit status On Tue, Aug 20, 2013 at 12:51 PM, Black, Michael (IS) < [email protected]> wrote: > Try adding the -fpic switch and see if that helps > > > Michael D. Black > Senior Scientist > Analytics, Production and Services > Advanced GEOINT Systems > Northrop Grumman Information Systems > ------------------------------ > *From:* [email protected] [ > [email protected]] on behalf of Phoebe K [ > [email protected]] > *Sent:* Tuesday, August 20, 2013 2:00 PM > *To:* [email protected] > *Subject:* EXT :[Winpcap-users] Fwd: libwpcap.a for Win7/64 bit > > Does WinPCAP 4.1.2 developer pack support libraries for Win 7 - 64 bit > machine? I am trying to build SILK/YAF and have to link wpcap - but I get > this error: > > > > configure:16513: checking for pcap_open_offline in -lwpcap > > configure:16538: gcc -o conftest.exe -g -O2 -I$(top_builddir)/include > -I$(top_srcdir)/include -I$(top_builddir)/airframe/include > -I$(top_srcdir)/airframe/include -Wall -Wno-comment -Wno-long-long > conftest.c -lwpcap >&5 > > /usr/lib/gcc/x86_64-pc-cygwin/4.8.1/../../../../lib/wpcap.lib(wpcap.dll.b):(.text+0x2): > relocation truncated to fit: R_X86_64_32 against symbol > `__imp_pcap_open_offline' defined in .idata$5 section in > /usr/lib/gcc/x86_64-pc-cygwin/4.8.1/../../../../lib/wpcap.lib(wpcap.dll.b) > > collect2: error: ld returned 1 exit status > > > _______________________________________________ > Winpcap-users mailing list > [email protected] > https://www.winpcap.org/mailman/listinfo/winpcap-users > >
_______________________________________________ Winpcap-users mailing list [email protected] https://www.winpcap.org/mailman/listinfo/winpcap-users
