GNU Compilers
Home Up Getting Started C++ GUI Partial Temp Comparisons MSVC 7 Limits BW MFC GNU Compilers

Ports of GNU C++ to Windows

I know of one port of GNU C++ to windows. Here are the two packages they are bundled with:

Cygwin at http://Cygwin.com

This will install and environment that emulates the Linux environment with the bash shell and even an X11 server (XWin.exe).

Important note: The Cygwin package no longer installs the compiler by default! A safe approach is to just download everything, but this requires 3/4 GB of disk space! You can probably get away with just selecting the gdb, gcc and g++ options.

Documentation on Cygwin is available at http://www.neuro.gatech.edu/users/cwilson/cygutils/V1.1/dll-stuff/. If you find some better sites, let me know.

Bloodshed at http://www.bloodshed.net/dev/devcpp.html

In contrast to Cygwin, this emulates the Microsoft Visual Studio development environment with their own free integrated development environment.

The GNU Compiler

Both Bloodshed and Cygwin use the same version of the same GNU compiler. At the time of this writing, it is 2.95 (it has been stuck at this version for quite some time).

To determining the version number, type in the following bolded text and observe the result. Unfortunately, I can only make this work at a bash prompt and not a CMD.exe prompt.

$ gcc -E -dM -x c++ /dev/null
#define _stdcall __attribute__((__stdcall__))
#define __EXCEPTIONS 1
#define __i386__ 1
#define _X86_ 1
#define __i386 1
#define __i686 1
#define __cplusplus 1
#define __GNUC_MINOR__ 95
#define __declspec(x) __attribute__((x))
#define pentiumpro 1
#define __CYGWIN__ 1
#define _cdecl __attribute__((__cdecl__))
#define __pentiumpro 1
#define i386 1
#define i686 1
#define __pentiumpro__ 1
#define __stdcall __attribute__((__stdcall__))
#define __unix 1
#define __unix__ 1
#define __i686__ 1
#define __GNUC__ 2
#define __GNUG__ 2
#define __cdecl __attribute__((__cdecl__))
#define __CYGWIN32__ 1
#define unix 1

 

Home Up Feedback Contents Search

Send mail to webmaster@SIGNITEK.com with questions or comments about this web site.