Choose the compiler you want

For MinGW on Windows, I strongly recommend installing the MinGW from the TDM GCC family.
At the time of writing this document, GCC 5.1 is latest available; below are the links:

If you need clang for Windows, download the latest from here:

Installing the compiler

Once you have selected the compiler you want to use, just follow the installation wizard.

When installing a compiler under Windows, DO NOT INSTALL IT IN A FOLDER WITH A SPACE IN ITS PATH

In case you missed the above warning, here it is again, this time in a different colour:

When installing a compiler under Windows, DO NOT INSTALL IT IN A FOLDER WITH A SPACE IN ITS PATH

Telling CodeLite about your new compiler

CodeLite has a built-in set of Compiler detectors that can locate many of the MinGW and clang versions out there.

Adding an existing compiler (automatic detection)

After your compiler has been installed, you need to trigger the compiler detection mechanism in CodeLite like this:

  • From the main menu bar, go to: settings->build settings->compilers->add compiler button->scan computer for installed compilers

Adding an existing compiler (manual)

If CodeLite was able to add your compiler automatically by following the steps in the previous section, you can skip this section.

  • From the main menu bar, go to: settings->build settings->compilers->add compiler button->add an existing compiler
  • In the dir selection dialog that pops up, select the folder where you installed your compiler
  • Click OK and this time CodeLite will be able to detect your compiler

Using the new compiler

To use your shiny new compiler, you need to select it in the project settings:

  • Open your project settings->common settings->general->compiler and select your new compiler from the list
  • Click OK and rebuild your project

That's it.

Edit - History - Print - Recent Changes - Search
Page last modified on February 28, 2016, at 02:50 PM