tcpdump mailing list archives

help compile tcpdump on win32 with VC2008 SP1


From: jianjun Wang <maplewang () hotmail com>
Date: Tue, 20 Sep 2011 13:50:21 +0000


in tcpdump-stdinc.h  it states:



/* Protos for missing/x.c functions (ideally <missing/addrinfo.h>
 * should be used, but it clashes with <ws2tcpip.h>).
 */
extern const char *inet_ntop (int, const void *, char *, size_t);
extern int inet_pton (int, const char *, void *);



I compiled it give errors:


tcpdump-stdinc.h(82) : error C2373: 'inet_ntop' : redefinition; different type modifiers
1>        c:\program files\microsoft sdks\windows\v6.0a\include\ws2tcpip.h(595) : see declaration of 'inet_ntop'
1>e:\windump\tcpdump-stdinc.h(83) : error C2373: 'inet_pton' : redefinition; different type modifiers
1>        c:\program files\microsoft sdks\windows\v6.0a\include\ws2tcpip.h(579) : see declaration of 'inet_pton'
1>datalinks.c



in VC2008 enviroments VC include dirs:
E:\winpcap.src\wpcap\libpcap\Win32\Include


Is there any detail information on it?




I searched on the net it give no infomations, can any one give me suggestions.


in windump it says, but it is too simple











WinDump Compiling Details

Software Requirements

Microsoft Visual C++ compiler, at least version 6.0.

You need to have the Microsoft Platform SDK installed and registered within 
Visual Studio 6. The Platform SDK contains some defnintions required to compile 
WinDump properly
More details on where to find the Platform SDK can be found 
in section "compiling wpcap.dll" in the WinPcap documentation (see http://www.winpcap.org/docs/).

The winpcap source tree must be in the same directory of the windump source 
tree
In order to compile WinDump, you need to have a directory structure like 
this
 
windump <-- WinDump sources
winpcap <-- Winpcap 
sources
 
In particular, the winpcap sources folder should be named 
exactly "winpcap".
 
Project files are in the directory 
windump\win32\prj of the WinDump source code distribution. Load the project 
from the Visual C++ 6.0 IDE and build the program. The release version of 
the WinDump.exe executable file will be generated in the directory 
windump\win32\prj\release. The debug version of the executable file 
will be generated in the directory windump\win32\prj\debug.

The project can be compiled indifferently under any Win32 platform. The 
executable file generated is 
system-independent.













                                          -
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: