Wireshark-dev: Re: [Wireshark-dev] Compilation error on Windows with VC 6

From: Abhijit Mirajkar <abhijit@xxxxxxxxxxx>
Date: Tue, 27 May 2008 13:19:02 +0530
Hi, thanks for the hints Bill ! The problem is now resolved.

Here are the mistakes I made (for the benefit of other newbies like me):

Apart from using vcvars32.bat, I was also using Platform SDK's setenv.bat
I overlooked the following note
"as the Platform SDK is already integrated in the package (MSVC 6), you
obviously don't need to install it and don't even need to call a separate
environment setting batch file for the Platform SDK!"

I still got an error (could not find header file 'htmlhelp.h') when I used
only MSVC environment. However the problem was not having "HTML Help
Workshop" installed. As given in the help of Microsoft compiler toolchain
(Win32 native) (4.4.8.2), I need to install HTML Help Workshop if I am using
MSVC 6.

I overcame it by commenting "HHC_DIR" and "HHC_EXE" lines in config.nmake,
as I am not interested in generating fresh docs.

Regards,
Abhijit

----- Original Message -----
From: "Bill Meier" <wmeier@xxxxxxxxxxx>

There may be several different things goiung on  ....

However: first things first:

If you are compiling with VC6 I would not have expected
"D:\Programs_Win2K\Microsoft Platform SDK for Windows Server 2003
R2\include\html"
to be in the include path.

1. Did you start a fresh "cmd" window and then execute the vc6 setup
file "c:\Program Files\Microsoft Visual Studio\VC98\Bin\vcvars32" ?
(The actual location of the VC6 setup file might be different depending
upon how VC6 was installed on your PC).

2. Did you do a distclean ??

3. Did you edit the config.nmake file to set the proper value for
MSC_VARIANT ?



Abhijit Mirajkar wrote:
Hi,

I could successfully compile the version 1.0.0 tarball with Visual C++
2005
Express Edition and Platform SDK Server 2003 R2. However I am getting
compilation error when I use Visual C++ 6.0 instead of VC 2005  EE.

> <snip>
>
I am attaching the compilation output with the errors below for your
reference. Any help will be greatly appreciated.

=====
Compiling...
gui_prefs.c
gui_utils.c
help_dlg.c
D:\Programs_Win2K\Microsoft Platform SDK for Windows Server 2003
R2\Include\html
help.h(374) : error C2146: syntax error : missing ')' before identifier
'dwData'




The information contained in this email and any attachments is confidential and may be subject to copyright or other intellectual property protection. If you are not the intended recipient, you are not authorized to use or disclose this information, and we request that you notify us by reply mail or telephone and delete the original message from your mail system.