Please select a setup package depending on your platform:

  1. Best Mingw For Windows
  2. Mingw For Mac
  3. Mingw Download For Mac

MingW Installer Mac OS. GitHub Gist: instantly share code, notes, and snippets. I have installed XCode Tools 2.2, and I have used gcc-3.3 for cross-compiling MinGW. MinGW for Mac OS X Source package is available here as a DMG file. Mount DMG file, and copy its contents in any directory. Building steps overview. All operations are organized by the makefile file.

NOTE: For older OS'es use older releases. There are releases for many OS version and platforms on the Sourceforge.net page.

NOTE: There are also more recent nightly builds available in the forums or (for Ubuntu users) in the Ubuntu PPA repository. Please note that we consider nightly builds to be stable, usually.

NOTE: We have a Changelog for 20.03, that gives you an overview over the enhancements and fixes we have put in the new release.

NOTE: The default builds are 64 bit (starting with release 20.03). We also provide 32bit builds for convenience.

Windows XP / Vista / 7 / 8.x / 10:

FileDateDownload from

codeblocks-20.03-setup.exe

codeblocks-20.03-setup-nonadmin.exe

codeblocks-20.03-nosetup.zip

codeblocks-20.03mingw-setup.exe

codeblocks-20.03mingw-nosetup.zip

codeblocks-20.03-32bit-setup.exe

codeblocks-20.03-32bit-setup-nonadmin.exe

codeblocks-20.03-32bit-nosetup.zip

codeblocks-20.03mingw-32bit-setup.exe

codeblocks-20.03mingw-32bit-nosetup.zip

29 Mar 2020

29 Mar 2020

29 Mar 2020

29 Mar 2020

29 Mar 2020

02 Apr 2020

02 Apr 2020

02 Apr 2020

02 Apr 2020

02 Apr 2020

FossHUB or Sourceforge.net

FossHUB or Sourceforge.net

FossHUB or Sourceforge.net

FossHUB or Sourceforge.net

FossHUB or Sourceforge.net

FossHUB or Sourceforge.net

FossHUB or Sourceforge.net

FossHUB or Sourceforge.net

FossHUB or Sourceforge.net

FossHUB or Sourceforge.net

NOTE: The codeblocks-20.03-setup.exe file includes Code::Blocks with all plugins. The codeblocks-20.03-setup-nonadmin.exe file is provided for convenience to users that do not have administrator rights on their machine(s).

NOTE: The codeblocks-20.03mingw-setup.exe file includes additionally the GCC/G++/GFortran compiler and GDB debugger from MinGW-W64 project (version 8.1.0, 32/64 bit, SEH).

NOTE: The codeblocks-20.03(mingw)-nosetup.zip files are provided for convenience to users that are allergic against installers. However, it will not allow to select plugins / features to install (it includes everything) and not create any menu shortcuts. For the 'installation' you are on your own.

If unsure, please use codeblocks-20.03mingw-setup.exe!

Linux 32 and 64-bit:

DistroFileDate
Download from

codeblocks_20.03_amd64_oldstable.tar.xz

codeblocks_20.03_i386_oldstable.tar.xz

codeblocks_20.03_amd64_stable.tar.xz

codeblocks_20.03_i386_stable.tar.xz

29 Mar 2020

29 Mar 2020

29 Mar 2020

29 Mar 2020

FossHUB or Sourceforge.net

FossHUB or Sourceforge.net

FossHUB or Sourceforge.net

FossHUB or Sourceforge.net


codeblocks-20.03-1.el6.rmps.tar

codeblocks-20.03-1.el7.rmps.tar

29 Mar 2020

29 Mar 2020

FossHUB or Sourceforge.net

FossHUB or Sourceforge.net


For Ubuntu, use this PPA:

29 Mar 2020

Mingw For MacDownload

Note: The Linux packages above are compressed archives (tar, tar.xz or tar.bz2). When you decompress the package you downloaded on your system, you will find all the .rpm or .deb packages required to install Code::Blocks.

Note: On RedHat/CentOS older revisions of 6 (up to 6.2 as far as we know) you need to add repoforge (former rpmforge) to your repolist, to be able to install the needed wxGTK-package. See http://repoforge.org/use for an instruction.

Note: Redhat/CentOS probably also needs an installed hunspell-package, if you want to install the contrib-plugins.

Mac OS X:

FileDateDownload from

CodeBlocks-13.12-mac.zip

26 Dec 2013

FossHUB or Sourceforge.net

NOTES:

  • Code::Blocks 20.03 for Mac is currently not available due to issues caused by Apple hardening their install packages and lack of Mac developers. We could use an extra Mac developer to work on these issues.
  • The provided download contains an Application Bundle (for the i386 architecture) built for Mac OS X 10.6 (and later), bundling most Code::Blocks plugins.

For older release versions please check here.

When we are participating in a programming contest, our aim is to be as quick and as efficient as possible. However, often the tools we use during contests are clunky, non-intuitive and impede our speed. The following post will help you set up Sublime Text in a way that leads to a good workflow - from reading the problem statement to submitting the solution.

Mingw compiler for mac

Setting up the Environment

1. Install MinGW Compiler

MinGW is a native Windows port of the GNU Compiler Collection (GCC). Install the latest MinGW compiler, after downloading from here.
Your path should preferably be C:MinGW. Finally, add the bin directory, C:MinGWbin to the System PATH.

2. Install Sublime Text

Sublime Text is one of the most popular editors for development in general. It’s smooth and fast compared to other editors (being written in C++ helps that speed). Sublime also has tons of plugins you can find through Package Control. Download and install Sublime Text 3 from here.

3. Create a build system

Sublime Text provides build systems to allow users to run external programs. Create a new build system for Sublime Text for setting up C++ compilation.
Go to Tools > Build System > New Build System. Paste the following code in the file and save it.

This can be used for piping input from the inputf.in file, and output to the outputf.in file. Note that this uses the -std=c++17 flag to enable the latest features of C++17. If you don't want this or want to use C++14, replace this with the -std=c++14 flag.

Best Mingw For Windows

4. Setup window layout

Create three new files, file.cpp, inputf.in, and outputf.in. Select View > Layout > Columns : 3. This will create three columns in the workspace. Move the three files into the three columns. Select View > Groups > Max Columns : 2.

The windows will look like above when you are done. Write a hello world program, and test its working. Use Ctrl+B to build and execute the file.

5. Precompile headers

Now we can speed up compilation time by precompiling all the header files as mentioned here, i.e. by precompiling the bits/stdc++.h header file. This can speed up compilation time by up to a factor of 12.
For this, first, navigate to the stdc++.h file. This will be located at a directory similar to C:MinGWlibgccmingw326.3.0includec++mingw32bits. Right click while pressing Shift to open a Powershell/cmd window there. Run the command g++ -std=c++17 stdc++.h, to compile the header. Take care to use the same flags you used in your build system. Check to make sure that the stdc++.h.gch file was created in the directory.

Finally, we can take advantage of the features of Sublime Text, namely snippets and completions.

Sublime Text features

Snippets

Mingw For Mac

Snippets are smart templates that will insert text for you and adapt it to their context. Read up on the documentation of snippets at the official guide. You can create snippets like the following to quickly insert snippets of code into your file.

You can also create starter templates like these :

Mingw Download For Mac

Completions

Sublime Text suggests completions that aggregate code or content while writing by catching everything that you have written, like variable names. Read up on the documentation of completions at the official guide. You can create completions like the following to quickly enter common phrases into your file.

This provides an experience close to code completion, with the advantage that you can customize it to phrases you frequently type.

Mingw

You can create snippet or completion files by putting the corresponding code in a .sublime-snippet or .sublime-completions file.

So that's the basics out of the way, you can now begin coding. You can also explore various other features present in Sublime text, especially its plugin functionality and the most common plugins. You can also install themes to change the look and feel of the windows. There are other features that you may want to use so I’ve provided some further reading.