change gcc version

General questions regarding the usage of CodeLite
3eR0.1ive
CodeLite Curious
Posts: 3
Joined: Fri Jul 08, 2011 11:43 pm
Genuine User: Yes
IDE Question: c++
Contact:

change gcc version

Post 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!
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: change gcc version

Post 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
Make sure you have read the HOW TO POST thread
3eR0.1ive
CodeLite Curious
Posts: 3
Joined: Fri Jul 08, 2011 11:43 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: change gcc version

Post 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.
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: change gcc version

Post 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
Make sure you have read the HOW TO POST thread
3eR0.1ive
CodeLite Curious
Posts: 3
Joined: Fri Jul 08, 2011 11:43 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: change gcc version

Post by 3eR0.1ive »

Oh, thank you. That's an idea =)
Post Reply