User forums > Help

Compiler must be in path? (and other compiler config stuff)

(1/1)

ET:
I could only get the compiler to work by putting it on the path. What's the compiler's installation directory field for, then?

A couple of other compiler questions:
Is it possible to have more than one compiler? For example, more than one gcc compiler?

And how about populating the program files automatically for a gcc target? They're always in the form 'prefix-gcc.exe' (for example 'sparc-elf-gcc.exe', which is what I configured) and so on, so just use let enter a prefix and configure all, or better, figure the prefix out from the files.

And what does 'auto detect' do? It couldn't find anything though my system is crawling with gcc compilers.

mandrav:

--- Quote ---I could only get the compiler to work by putting it on the path
--- End quote ---

And what path exactly did you put in the master path?


--- Quote ---Is it possible to have more than one compiler? For example, more than one gcc compiler
--- End quote ---

Go to "Settings/Configure plugins/Compiler" and press the "Copy" button just under the compiler selection.


--- Quote ---And how about populating the program files automatically for a gcc target?
--- End quote ---

Why do that automatically? The compiler configuration process, is a process that takes a couple of minutes and takes place only once, usually. Plus, the naming scheme is not the same under other platforms...


--- Quote ---And what does 'auto detect' do?
--- End quote ---

It tries to auto-detect the compiler path. It may fail...
For mingw gcc, it looks for mingw.ini in windows dir. There is a mingw-installation bug with this, mentioned in this thread.

For MSVC toolkit, it checks the registry.
Generally, for each compiler, it uses a method appropriate for it.

Yiannis.

rickg22:
How about searching for GCC/MINGW in the Environment Path?

Like C:\WINDOWS;C:\Program files\something;C:\MyUtils;etc

You could also add a check button for "[] Search full drive(s)"

Navigation

[0] Message Index

Go to full version