I've never tried mingw-w64 before (last time I tried, it was MSYS and only 32bit), are there precompiled packages available online that one can install?
Also, is mingw-w64 a cross-compiler or just the 64bit version of the toolchain? I'm used to the MS compilers that are 32bit and cross-compile (I used to compile all the 64bit WinPcap components on an XP 32bit VM). GV -------------------------------------------------- From: "noreply" <[email protected]> Sent: Wednesday, October 06, 2010 9:40 AM To: <[email protected]> Subject: Re: [Winpcap-users] 4.1.2 Compatibility with mingw-w64 toolchain? > I have a solution to this problem. The short answer is that there is a > problem with the mingw-w64 toolchain, specifically in gcc's 'binutils' > which > generate the actual dynamic library. > > The reason it works for 32-bit version and not for 64-bit version is that > wpdpack/lib directory contains the libpwpap.a file which gcc can link > against correctly, while the wpdpack/lib/x64 directory only contains the > wpcap.lib and no 64-bit libwpcap.a compatible library. Therefore, because > of > the 'binutils' bug, the 64-bit builds fail against the .lib file alone. > > May be in the future releases, the WinPcap team can generate the > libwpcap.a > file as well for x64 architecture? > > Here is a link to the the full discussion on this: > > https://sourceforge.net/projects/mingw-w64/forums/forum/723797/topic/3882579 > > Cheers, > mark... > >> -----Original Message----- >> From: [email protected] >> [mailto:[email protected]] On Behalf Of Mark >> Bednarczyk >> Sent: Wednesday, October 06, 2010 10:14 AM >> To: [email protected] >> Subject: [Winpcap-users] 4.1.2 Compatibility with mingw-w64 toolchain? >> >> Hi, >> I'm linking my code using mingw-w64 toolchain on Win7 >> x86_64 system. The code compiles against the WpdPack 4.1.2, >> wpcap in lib/x64 directory and links. Then at runtime all the >> pcap_* library calls are incorrectly linked again WinPcap >> 4.1.2 runtime install and core-dump immediately. >> >> Even this will coredump: >> >> const char *name = pcap_datalink_val_to_name(1); >> >> Has anyone tried using mingw-w64 to link their code with >> latest x64 pcap? >> >> Here is a little blog I'm keeping on this issue, until its >> resolved. It has a stack-trace: >> http://jnetpcap.com/node/662 >> >> Cheers, >> mark... >> http://jnetpcap.com >> >> >> _______________________________________________ >> 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 _______________________________________________ Winpcap-users mailing list [email protected] https://www.winpcap.org/mailman/listinfo/winpcap-users
