Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] wireshark build fails!??!!

From: Bill Meier <wmeier@xxxxxxxxxxx>
Date: Tue, 05 Jan 2010 13:19:36 -0500
Manthos S. wrote:
Dear experts,

intending to develop a wireshark dissector plugin, i stack upon the last
step of creating my development environment: after executing 'nmake -f
makefile.nmake all' i get the errors and the build stops.
All steps before are done successfully!
The latest sources updated with svn.

Before the error some details about my system:
*Windows XP
Visual Studio Express 2008 SP1

cmd prepare:*
@echo off
echo Adding things to the path...
set WIRESHARK_DEV_PATH=.
set PATH=%PATH%;%WIRESHARK_DEV_PATH%\wiretap
set PATH=%PATH%;%WIRESHARK_DEV_PATH%\epan
set PATH=%PATH%;c:\wireshark-win32-libs\glib\bin
set PATH=%PATH%;c:\wireshark-win32-libs\gtk+\lib
set PATH=%PATH%;c:\wireshark-win32-libs\gtk2\bin
set PATH=%PATH%;c:\wireshark-win32-libs\adns-1.0-win32-04\adns_win32\lib
set PATH=%PATH%;c:\wireshark-win32-libs\pcre-6.3\bin
set PATH=%PATH%;c:\wireshark-win32-libs\zlib123-dll/
set PATH=%PATH%;c:\wireshark-win32-libs\gettext-runtime-0.13.1\bin
set PATH=%PATH%;c:\wireshark-win32-libs\libiconv-1.9.1.bin.woe32\bin
set PATH=c:\cygwin\bin;%PATH%
set PATH=%PATH%;"c:\Program Files\Debugging Tools for Windows"



It's not necessary (but probably OK) to add epan and the libs stuff to the path

<snip>



        cl -DWIN32 -DNULL=0 -D_MT -D_DLL -WX -DHAVE_CONFIG_H /I. /I..
/IC:\wireshark-win32-libs\gtk2\include\glib-2.0
/IC:\wireshark-win32-libs\gtk2\lib\glib-2.0\include
  /IC:\wireshark-win32-libs\WPdpack\include -D_U_="" /Zi /W3 /MD
/D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DWIN32_LEAN_AND_MEAN
/DMSC_VER_REQUIRED=1500 /D_B
IND_TO_CURRENT_CRT_VERSION=1 /MP -Fd.\ -c file_util.c unicode-utils.c
mpeg-audio.c privileges.c str_util.c type_util.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for
80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

file_util.c
unicode-utils.c
C:\wireshark\config.h(56) : error C2018: unknown character '0x40'
C:\wireshark\config.h(56) : error C2018: unknown character '0x40'
C:\wireshark\config.h(56) : error C2018: unknown character '0x40'
C:\wireshark\config.h(56) : error C2018: unknown character '0x40'
C:\wireshark\config.h(246) : error C2054: expected '(' to follow
'HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION'
C:\wireshark\config.h(246) : error C2054: expected '(' to follow

The errors in line 56 of config.h puzzle me.

What does config.h around line 56 look like ?

Are there funny characters in the file ??