分类: LINUX
2010-03-16 02:20:22
4.3. GNU compiler toolchain (UNIX or Win32 Cygwin) | ||
---|---|---|
Chapter 4. Tool Reference |
Win32: Warn! | |
---|---|
Using Cygwin gcc to compile Wireshark is "EXPERT ONLY" and therefore NOT recommended. If you really want to try it anyway, see: for some details! |
The GCC C compiler is available for most of the UNIX-like platforms and as the Devel/gcc package from the .
If GCC isn't already installed or available as a package for your platform, you can get it at: .
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.
However, the version string may vary.
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
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: .
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".
However, the version string may vary.
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 .
If GNU DDD isn't already installed or available as a package for your platform, you can get it at: .
Win32 Note! | |
---|---|
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 .
If GNU Make isn't already installed or available as a package for your platform, you can get it at: .
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.
However, the version string may vary.
4.2. Win32: Cygwin | 4.4. Microsoft compiler toolchain (Win32 native) |