Switching between MinGW installations
Posted: Thu Jan 02, 2014 9:54 am
There are 4 ways to tell codelite to use a different MinGW toolchain:
Lets assume that your current MinGW is 4.7.1, installed under C:\MinGW-4.7.1 and you wish to move to MinGW-4.8.1 which is installed under
C:\MinGW-4.8.1
So to do this, we have 4 options:
Option 1: use the the compiler environment variables
Similar to option 1, but this one affects "globally"
Lets assume that your current MinGW is 4.7.1, installed under C:\MinGW-4.7.1 and you wish to move to MinGW-4.8.1 which is installed under
C:\MinGW-4.8.1
So to do this, we have 4 options:
Option 1: use the the compiler environment variables
- From the main menu, go to: Settings -> Build Settings -> Compilers -> gnu g++ -> Tools
- Update the "PATH environment variable" field to include the bin folder of the new installation like this:
Code: Select all
PATH=C:\MinGW-4.8.1\bin;$PATH
Similar to option 1, but this one affects "globally"
- From the main menu, go to: Settings -> Environment variables
- Add a line that updates your PATH environment variable with the bin folder of your MinGW's bin folder:
Code: Select all
PATH=C:\MinGW-4.8.1\bin;$PATH
- Close codelite
- Open the file under codelite installation folder named "registry.ini"
- Under the [environment] section, change the value of mingw to point to your MinGW installation C:\MinGW-4.8.1 (_not_ the bin folder)
- From the main menu, go to: Settings -> Build Settings -> Compilers -> gnu g++ -> Tools
- Replace all the tools with full paths (e.g. instead of plain "g++", use: C:\MinGW-4.8.1\bin\g++.exe)