Author Topic: Compiler must be in path? (and other compiler config stuff)  (Read 3734 times)

Offline ET

  • Single posting newcomer
  • *
  • Posts: 6
    • http://
Compiler must be in path? (and other compiler config stuff)
« on: March 07, 2005, 12:16:06 pm »
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.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Compiler must be in path? (and other compiler config stuff)
« Reply #1 on: March 07, 2005, 01:20:46 pm »
Quote
I could only get the compiler to work by putting it on the path

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

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?

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?

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.
Be patient!
This bug will be fixed soon...

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Compiler must be in path? (and other compiler config stuff)
« Reply #2 on: April 06, 2005, 10:23:06 pm »
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)"