


Just select the directory where you have copied all the compilers binaries ( /usr/i586-mingw32msvc/ ) and setup the executables as shown in the picture below. The last step is to tell Code::Blocks where and what your cross compiler binaries are.

The pictures below show how it should look like. For every entry you have to put: /usr/i586-mingw32msvc. You will need to setup the directories for Compiler, Linker, and Resource Compiler. Now you will have to change some directories for the new cross compiler. Go to Settings->Compiler and Debugger Settings and create a copy of the current selected compiler. To let Code::Blocks know about your cross compiler you have to create a new compiler profile. Setup Code::Blocks to use the Cross Compiler Install the mingw package from the Universe Repository, using synaptics or with the following command: Depending on your distribution, the installation of the needed packages can differ. This will describe how to setup your Linux box to compile your code for the Windows platform using 1.2 Setup Code::Blocks to use the Cross Compiler.

Open Applications folder and run Code Blocks app. dmg file to install Code Blocks on macOS. 'OR' You can also download latest version for macOS directly from following download button if above method doesn't works.
