Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't select default compiler after Aug 2003 upgrade



Dale Gillard wrote:
| Hello
|
| I've just updated PB 2.1 (Dec Tools, ver 114.0) with the August 2003
| gcc Updater, and added the 3 Expert View settings as recommended. The
| problem is that I'm not able to choose the default compiler within PB.
|
| When I select "Default" from the Compiler version popup menu (from
| Settings > GCC Compiler Settings), the popup immediately switches back
| to "GCC 3.1" and removes the setting for "GCC_VERSION = 3.x" from the
| Expert View.
|
| And if I drop into Terminal and issue the command "sudo
| /usr/sbin/gcc_select 3.3" it tells me I'm already using 3.3!
|
| How can I be using GCC 3.3 if I can't select the Default compiler
| version? Is PB really ignoring the GCC setting? If so, is an acceptable
| workaround to create a setting in the Expert View for "GCC_VERSION =
| 3.3", creating a custom Compiler version? Or am I doing something
| obviously wrong?

What you're doing wrong is trying to select the compiler within PB.

The current approach is what's technically called a "hack". When the current PB came out, it had provision for two compilers: gcc 2.95 and gcc 3.1. The update screws this up by introducing a second 3.x compiler, one which PB doesn't really know about.

The way Apple gets around this without releasing a new version of PB (a new version not called Xcode, at least) is by lying to PB, and pretending that the 3.3. compiler *is* the 3.1 compiler. What "gcc_select" does is choose which version is currently wearing the "Hello, my name is gcc 3.1" name tag. After the update is installed, gcc 3.3 has the name tag, so gcc_select correctly reports that you're compiling with gcc 3.3. But PB sees only the name tag, and thinks that it's gcc 3.1.

The expert setting is removed probably because the popup controls that setting, so making a selection causes the setting to be changed. 3.1 *is* the default, so selecting the default is the same as selecting 3.1.

So use the popup to switch between 2.95 and 3.whatever; use gcc_select and hand-entered settings to switch between 3.1 and 3.3.

Glen Fisher
_______________________________________________
projectbuilder-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/projectbuilder-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Can't select default compiler after Aug 2003 upgrade (From: Dale Gillard <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.