Use gcc_select to switch compilers

Sep 02, '02 10:53:30AM

Contributed by: sammaffei

You can easliy change between gcc 2.x and gcc 3.x compilers via the Terminal by using gcc_select:

  1. Make sure that '/usr/sbin' is in your path.
  2. Get 'root' access (sudo or su).
  3. To switch to gcc 2.x enter "gcc_select 2".
  4. To switch to gcc 3.x enter "gcc_select 3".
Use gcc_select with no options to find out which compiler is currently active (doesn't require root access).

Comments (0)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20020902075330937