4.3. GNU compiler toolchain (UNIX or Win32 Cygwin)

4.3.1. gcc (GNU compiler collection)

[Warning]Compiling with gcc on Windows is discouraged

Using Cygwin gcc to compile Wireshark is unsupported and recommended. If you really want to try it anyway see: http://wiki.wireshark.org/Development/CygwinGCC for details.

The GCC C compiler is available for most of the UNIX-like platforms and as the Devel/gcc package from the Cygwin setup.

If GCC isn’t already installed or available as a package for your platform, you can get it at: http://gcc.gnu.org/.

After correct installation, typing at the bash command line prompt:

$ gcc --version

should result in something like

gcc (GCC) 3.4.4 (cygwin special) (gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Your version string may vary, of course.

4.3.2. gdb (GNU project debugger)

GDB is the debugger for the GCC compiler. It is available for many (if not all) UNIX-like platforms and as the Devel/gdb package from the Cygwin setup

If you don’t like debugging using the command line there are some GUI frontends for it available, most notably GNU DDD.

If gdb isn’t already installed or available as a package for your platform, you can get it at: http://www.gnu.org/software/gdb/gdb.html.

After correct installation:

$ gdb --version

should result in something like:

GNU gdb 6.5.50.20060706-cvs (cygwin-special)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin".

Your version string may vary, of course.

4.3.3. ddd (GNU Data Display Debugger)

The GNU Data Display Debugger is a good GUI frontend for GDB (and a lot of other command line debuggers), so you have to install GDB first. It is available for many UNIX-like platforms and as the ddd package from the Cygwin setup.

If GNU DDD isn’t already installed or available as a package for your platform, you can get it at: http://www.gnu.org/software/ddd/.

4.3.4. make (GNU Make)

[Note]GNU make isn’t supported either

Although some effort is made to use make from the Cygwin environment, the mainline is still using Microsoft Visual Studio’s nmake.

GNU Make is available for most of the UNIX-like platforms and also as the Devel/make package from the Cygwin setup.

If GNU Make isn’t already installed or available as a package for your platform, you can get it at: http://www.gnu.org/software/make/.

After correct installation:

$ make --version

should result in something like:

GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Your version string may vary, of course.