Re: Precomp twice, fail once?
Re: Precomp twice, fail once?
- Subject: Re: Precomp twice, fail once?
- From: Tom Harrington <email@hidden>
- Date: Tue, 30 Nov 2004 17:07:39 -0700
On Tue, 30 Nov 2004 16:36:31 -0700, Tom Harrington <email@hidden> wrote:
> I added a new target to my project, using the Cocoa "shell tool" type.
>
> When I attempt to build the target, XCode attempts to precompile the
> AppKit headers twice. The first time it succeeds, and the second time
> it fails, generating 3765 errors.
>
> Looking at the build log, it's not hard to guess why the two are
> different. The first precompile has "-x objective-c-header", while
> the second for some reason has "-x c-header", even though it's
> attempting to precompile AppKit headers.
>
> This target does contain a ".c" file, but neither that file nor its
> header reference AppKit in any way.
A further detail: I disabled "precompile prefix header" for this
target, and tried building again. Now it attempts to compile the ".c"
file, but for some reason passes this argument to gcc:
-include /System/Library/Frameworks/AppKit.framework/Headers/AppKit.h
It then goes on to fail horribly, because it's compiling a C file
while forcibly including Objective-C header files. This time it gets
3766 errors.
So for some reason XCode is determined to get AppKit.h included in
this file, even though the file has no dependencies on AppKit. Why
does it want to do this, and how can I convince it to act otherwise?
--
Tom Harrington
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden