This wiki has been migrated to https://gitlab.com/wireshark/wireshark/-/wikis/home and is now deprecated. Please use that site instead.
Differences between revisions 1 and 2
Revision 1 as of 2005-02-02 21:25:55
Size: 1346
Editor: UlfLamping
Comment: first content from a Mail from Laurent Rabret
Revision 2 as of 2005-02-02 21:28:26
Size: 1364
Editor: UlfLamping
Comment: some editing
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
The mainline to compile Ethereal under Windows is using Microsoft Visual Studio Version 6. '''The main line to compile Ethereal under Windows is still using Microsoft Visual Studio Version 6.'''
Line 18: Line 18:
1) LOCAL_CFLAGS=/Zi /W3 by LOCAL_CFLAGS= /Zi /DWIN32 /W3
2) LOCAL_LDFLAGS=/DEBUG by LOCAL_LDFLAGS=/DEBUG /DEFAULTLIB:msvcrt
/NODEFAULTLIB:libc
 * LOCAL_CFLAGS=/Zi /W3 by LOCAL_CFLAGS= /Zi /DWIN32 /W3
 * LOCAL_LDFLAGS=/DEBUG by LOCAL_LDFLAGS=/DEBUG /DEFAULTLIB:msvcrt /NODEFAULTLIB:libc
Line 24: Line 23:
LDFLAGS = /NOLOGO /INCREMENTAL:no /MACHINE:I386 $(LOCAL_LDFLAGS)  * LDFLAGS = /NOLOGO /INCREMENTAL:no /MACHINE:I386 $(LOCAL_LDFLAGS)
Line 26: Line 25:
LDFLAGS = /NOLOGO /INCREMENTAL:no /MACHINE:I386  * LDFLAGS = /NOLOGO /INCREMENTAL:no /MACHINE:I386

MSVC7

The main line to compile Ethereal under Windows is still using Microsoft Visual Studio Version 6.

Here are some tips to compile Ethereal under newer compiler versions:

to qoute a mail from Laurent Rabret (see http://www.ethereal.com/lists/ethereal-dev/200501/msg00636.html):


To compile with the .NET SDK, you'll have to install the platform SDK (available for free).

http://www.microsoft.com/msdownload/platformsdk/sdkupdate/

You may encounter linking problems caused by "bad" parameters in config.nmake. I never sent a patch to fix this because I'm not sure whether or not it impacts VS6 compilation. I replaced:

  • LOCAL_CFLAGS=/Zi /W3 by LOCAL_CFLAGS= /Zi /DWIN32 /W3
  • LOCAL_LDFLAGS=/DEBUG by LOCAL_LDFLAGS=/DEBUG /DEFAULTLIB:msvcrt /NODEFAULTLIB:libc

While compiling plugins, you might also encounter problems. For these plugins, in the Makefile.nmake file change

  • LDFLAGS = /NOLOGO /INCREMENTAL:no /MACHINE:I386 $(LOCAL_LDFLAGS)

by

  • LDFLAGS = /NOLOGO /INCREMENTAL:no /MACHINE:I386

...I know, that's not very clean ;-)

At last, don't forget to include a line such this:

File "c:\program files\Microsoft Visual Studio .NET 2003\Common7\IDE\msvcr71.dll"

... in your ethereal.nsi script (if you want to create an installer)


Development/MSVC7 (last edited 2020-03-20 21:59:16 by GuyHarris)