Page 1 of 1

Adding g++ 4.6.2

Posted: Tue Dec 18, 2012 10:27 am
by wford
I have libraries compiled with g++ 4.6.2, and by default CodeLite uses g++ 4.6.1. This results in many "unwind" errors. I have tried to add the 4.6.2 compiler under C:\MinGW with no success. How do I add the compiler?

Thanks.

Re: Adding g++ 4.6.2

Posted: Thu Dec 20, 2012 2:57 pm
by Jarod42
In Settings... -> Build settings...
edit (or create new) g++ configuration to use your version of g++
(So fix PATH variable).

Alternatively, you can edit register.ini to set mingw path if your new g++ version is in an other mingw directory.

Re: Adding g++ 4.6.2

Posted: Sat Dec 22, 2012 7:59 pm
by eranif
You can change your MinGW from various locations, the easiest way (which will apply globally) is alter the PATH environment variable (from within codelite):
Settings -> environment variables

Under the "Default" set, add this line (make it the last line):

Code: Select all

PATH=/path/to/MinGW/4.6.2/bin;$PATH
Note the semicolon separator and the trailing $PATH
Now, whenever you call 'g++' it will be first searched under /path/to/MinGW/4.6.2/bin

Eran