Ethereal-dev: Re: [Ethereal-dev] Compiling ethereal for MSVC7

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

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Mon, 14 Nov 2005 20:35:21 +0100
vishu27@xxxxxxx wrote:

Hi,
 I am new to ethereal. I saw on the Wiki instructions to compile ethereal for MS Visual Studio .NET 2003. I followed the instructions there and got the following error

capture_if_details_dlg.c(71) : error C2011: 'sockaddr_storage' : 'struct' type redefinition.

This happens to also be defined in
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinSock2.h(581)

Any idea why this is happening.
That's because the definition of sockaddr_storage is needed when you compile without the PaltformSDK. This way you don't need to install the whole SDK to compile Ethereal with MSVC 6..

If you do it with the SDK, you should define

HAVE_SOCKADDR_STORAGE

in config.h.win32 (I think it's called this way), to switch of the redefinition and try again.

Please let me know if this is the right list for this. Any help is appreciated.
It is the right list.

Regards, ULFL