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.
Adding g++ 4.6.2
-
- CodeLite Curious
- Posts: 6
- Joined: Mon Dec 10, 2012 7:34 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
- Jarod42
- CodeLite Expert
- Posts: 240
- Joined: Wed Sep 30, 2009 5:54 pm
- Genuine User: Yes
- IDE Question: C++
- Location: France
- Contact:
Re: Adding g++ 4.6.2
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.
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.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Adding g++ 4.6.2
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):
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
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
Now, whenever you call 'g++' it will be first searched under /path/to/MinGW/4.6.2/bin
Eran
Make sure you have read the HOW TO POST thread