Ethereal-dev: Re: [Ethereal-dev] GTK will not compile on Windows based computer after Monday c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxx>
Date: Tue, 25 Jun 2002 12:01:09 -0700
On Tue, Jun 25, 2002 at 09:08:38AM -0600, Greg Morris wrote:
> c:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(134) :
> warning
> C4005: 'FD_SET' : macro redefinition
>         c:\Program Files\Microsoft Visual
> Studio\VC98\include\winsock.h(83) : see previous definition of 'FD_SET'
> c:\Program Files\Microsoft Visual Studio\VC98\include\winsock2.h(143) :
> error C2011: 'timeval' : 'struct' type redefinition

Something is causing "winsock.h" to be included.

Ethereal now uses "winsock2.h", as WinPcap 2.3's header files include
it, and as "winsock.h" and "winsock2.h" apparently cannot both be
included in the same file, and as "wiretap/libpcap.c" now includes
"pcap.h" (which is the main libpcap/WinPcap header file, and which
causes "winsock2.h" to be included with WinPcap 2.3).

Make sure you have WinPcap 2.3 installed, and that the directories that
"config.nmake" on your system treats as the directories for WinPcap's
header files and libraries has the WinPcap 2.3 version of the WinPcap
developer's pack:

	http://winpcap.polito.it/install/default.htm