Wireshark-dev: Re: [Wireshark-dev] Compilation error on windows XP
From: Graham Bloice <graham.bloice@xxxxxxxxxxxxx>
Date: Fri, 23 May 2008 16:48:41 +0100
Abhijit Mirajkar wrote:
Hi,

I am trying to compile the wireshark by following the instructions
word-by-word  given at
http://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html
Only that instead of getting the source through subversion, I have
downloaded version 1.0.0.0 zipped code.

However I am getting following compilation error :
"k12text.c
C:\cygwin\usr\include\sys/_types.h(15) : error C2054: expected '(' to follow
'__
extension__'
C:\cygwin\usr\include\sys/_types.h(15) : error C2085: '_off64_t' : not in
formal
 parameter list"

Note that I had to append the INCLUDE environment variable with the path for
cygwin include (C:\cygwin\usr\include\sys).

Can anybody please throw some light?
Thanks in advance,



You don't need the Cygwin include path at all. This is causing these errors. Remove that addition to the INCLUDE env var and try again. If you are still getting errors have you set up the Visual Studio env vars by the steps in 2.2.6 of the guide?

--
Regards,

Graham Bloice