Page 1 of 1

change gcc version

Posted: Fri Jul 08, 2011 11:46 pm
by 3eR0.1ive
Hi!
It took me to change the gcc version on the older, and I could not do it.
What should I do?

Both versions are installed.

-V flag - only works for the first file in the project.
OS: linux

Sorry for my English.
Thank you!

Re: change gcc version

Posted: Sat Jul 09, 2011 12:05 am
by eranif
If you installed codelite's MinGW
3eR0.1ive wrote:It took me to change the gcc version on the older, and I could not do it.
What should I do?
Make sure that your favorite gcc is set first PATH environment. Other than that, not really a codelite question
please ask at the proper forums

Eran

Re: change gcc version

Posted: Sat Jul 09, 2011 12:37 am
by 3eR0.1ive
eranif wrote:If you installed codelite's MinGW
No, not MinGW.

I can probably set the gcc version of the OS.
But then for the various projects will not be able to use different versions of gcc, it is sometimes convenient to ...
As it can be done for example in Xcode.

Sorry, i do not like it agrees with your ideology.

Re: change gcc version

Posted: Sat Jul 09, 2011 12:59 am
by eranif
3eR0.1ive wrote:But then for the various projects will not be able to use different versions of gcc
Define a new compiler in codelite from:

'Settings | Build Settings | Compilers'

and click on the 'New' button.

In the new compiler that shows up, set up the 'Tools' to point to you favorite g++/gcc
so instead of:
C++ compiler name: g++

change it to:
C++ compiler name: /path/to/my/new/g++

etc

Next, open the project settings and change the compiler to the one you have just created
Eran

Re: change gcc version

Posted: Sat Jul 09, 2011 1:00 am
by 3eR0.1ive
Oh, thank you. That's an idea =)