Where do I put the path to GCC?
There isn't any place in build setting asking for it
do I need to put it in my environment variables?
compiler path
-
- CodeLite Curious
- Posts: 2
- Joined: Tue May 27, 2008 12:19 am
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: compiler path
The compiler settings can be configured from:
Settings -> Build Settings -> Compilers
Now, if you are using 'g++', just select the g++ tab there, and the 'Tools' sub-tab
By default CodeLite uses g++ with no path, it assumes that it is in your path.
To modify it, you can do:
1. Instead of 'Compiler Name' g++, you can place there the full path of the compiler
2. Lets assumes that all your tools are located at: C:\MinGW\bin, than, define new environment variables (Settings -> Environment Variables) that points to that location, and use it in the compiler name, so the g++ is now become: $(MINGW)\g++
3. The easiest way to do it, is to add C:\MinGW\bin to your path (again, I am assuming that the gcc tools are located under C:\MinGW), go to 'Settings -> Environment Variables' define new variable:
Name: PATH
Value: $(PATH);C:\MinGW\bin
this appends C:\MinGW\bin to your system path (ofc, only in the IDE). Once set, there is nothing more to update.
PS: Please specify OS next time
Eran
Settings -> Build Settings -> Compilers
Now, if you are using 'g++', just select the g++ tab there, and the 'Tools' sub-tab
By default CodeLite uses g++ with no path, it assumes that it is in your path.
To modify it, you can do:
1. Instead of 'Compiler Name' g++, you can place there the full path of the compiler
2. Lets assumes that all your tools are located at: C:\MinGW\bin, than, define new environment variables (Settings -> Environment Variables) that points to that location, and use it in the compiler name, so the g++ is now become: $(MINGW)\g++
3. The easiest way to do it, is to add C:\MinGW\bin to your path (again, I am assuming that the gcc tools are located under C:\MinGW), go to 'Settings -> Environment Variables' define new variable:
Name: PATH
Value: $(PATH);C:\MinGW\bin
this appends C:\MinGW\bin to your system path (ofc, only in the IDE). Once set, there is nothing more to update.
PS: Please specify OS next time
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 2
- Joined: Tue May 27, 2008 12:19 am
- Contact:
Re: compiler path
thankseranif wrote:The compiler settings can be configured from:
Settings -> Build Settings -> Compilers
Now, if you are using 'g++', just select the g++ tab there, and the 'Tools' sub-tab
By default CodeLite uses g++ with no path, it assumes that it is in your path.
To modify it, you can do:
1. Instead of 'Compiler Name' g++, you can place there the full path of the compiler
2. Lets assumes that all your tools are located at: C:\MinGW\bin, than, define new environment variables (Settings -> Environment Variables) that points to that location, and use it in the compiler name, so the g++ is now become: $(MINGW)\g++
3. The easiest way to do it, is to add C:\MinGW\bin to your path (again, I am assuming that the gcc tools are located under C:\MinGW), go to 'Settings -> Environment Variables' define new variable:
Name: PATH
Value: $(PATH);C:\MinGW\bin
this appends C:\MinGW\bin to your system path (ofc, only in the IDE). Once set, there is nothing more to update.
sorry, I forgoteranif wrote: PS: Please specify OS next time
Eran
I'll remember next time