Re: Header issues?
Re: Header issues?
- Subject: Re: Header issues?
- From: Justin Walker <email@hidden>
- Date: Tue, 24 May 2005 19:54:08 -0700
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:
This email sent to email@hidden