Choosing Which Compiler To Use

From WxWiki
Jump to navigation Jump to search

Windows

  • MSVC: See the list of IDEs.
  • MSYS-MinGW: MinGW is a collection of freely available and freely distributable Windows specific header files and import libraries combined with GNU toolsets that allow one to produce native Windows programs that do not rely on any 3rd-party C runtime DLLs. MSYS provides A Minimal SYStem to provide POSIX/Bourne configure scripts the ability to execute and create a Makefile used by make.
  • GCC under Cygwin: Porting from linux to windows might be easiest with Cygwin, but that does require you to link your resulting application to the cygwin library, which is probably needlessly big (plm 1.6Mb stripped) and slow.
  • GCC under Dev-C++: Bloodshed Dev-C++ IDE for C/C++, uses MinGW port of GCC.
  • Borland C++Builder: The free borland compiler is command line based, but produces excellent programs for the Windows OS. Executables compiled for native Windows run faster than GCC within cygwin, but if cross platform compilation is important then gcc/cygwin may be the better solution. Be sure to download the two service packs called "Free compliler updates" #1 and #2, Borland C++ Compiler 5.5 patches. NOTE: You cannot link programs larger than about 2.5Mb statically and you must therefore compile wxWidgets as a DLL for any modest sized program.

Linux

On linux, you generally just use the g++ compiler which normally comes with your system.

Although you can use the mingw32 cross-compiler, Cross-Compiling_Under_Linux, to create Win32 executables.