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: Header issues?




On May 24, 2005, at 19:05, Mason Loring Bliss wrote:

Hi, all.

I've tried building XNU, and more recently I've tried compiling
AppleADBKeyboard, and I get failures that make me  think I've got
some sort of missing headers or header mismatch.

Can someone suggest what might be wrong here? Is this perhaps an issue with
gcc4, and can I tell XCode to use gcc3 somehow? I'd really like to get this
to build, but I'm new to XCode and new to MacOS in general.

I didn't look through your errors, but I think that the consensus (or, perhaps, the advice from Apple) is that you not use gcc 4 as it currently stands, particularly not for the OS and extensions.


In the first place, the version of gcc 4 that Apple shipped predates the "final" gcc4 support for C++, so its support of that language is not great (a number of important bugs were fixed for the final release).

In the second, most of the open source components of Mac OS X 10.4 were compiled with gcc 3.3, including the kernel.

In short: switch to gcc 3.3, and you will be happier.

To do that in Xcode, I think it works like this:
  - GetInfo for your target
  - select 'rules'
  - The "System C Rules" Process pop-up lets you choose
    the language;
  - the "System C Rules" Using pop-up lets you chooes
    the compiler.

If you are just building with command-line tools, you can use "scc_select" to set the default compiler.

Regards,

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for General Semantics
--------
It's not whether you win or lose...
It's whether *I* win or lose.
--------

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >Header issues? (From: Mason Loring Bliss <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.