• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Precompiled header woes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Precompiled header woes


  • Subject: Precompiled header woes
  • From: David Wood <email@hidden>
  • Date: Mon, 5 May 2003 17:37:04 -0400

I hate compiler warnings. In this case I got them by working on a very simple exercise in O'Reilly's "Building Cocoa Applications." Specifically, the dict.m demo of NSDictionary on pp. 267-268. I know the dictionary class well enough, but felt I ought to run it through the command line anyway.

I got all this:

dict.m:3: warning: could not use precompiled header '/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa-gcc3.p', because:
dict.m:3: warning: macro '__APPLE_CC__' previously defined on command line for precomp does not match current command line definition
/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12: warning: could not use precompiled header '/System/Library/Frameworks/Foundation.framework/Headers/Foundation- gcc3.p', because:
/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12: warning: macro '__APPLE_CC__' previously defined on command line for precomp does not match current command line definition
/System/Library/Frameworks/Foundation.framework/Headers/ NSAppleEventDescriptor.h:8: warning: could not use precompiled header '/System/Library/Frameworks/ApplicationServices.framework/Headers/ ApplicationServices-gcc3.p', because:
/System/Library/Frameworks/Foundation.framework/Headers/ NSAppleEventDescriptor.h:8: warning: macro '__APPLE_CC__' previously defined on command line for precomp does not match current command line definition
/System/Library/Frameworks/ApplicationServices.framework/Headers/ ApplicationServices.h:20: warning: could not use precompiled header '/System/Library/Frameworks/CoreServices.framework/Headers/ CoreServices-gcc3.p', because:
/System/Library/Frameworks/ApplicationServices.framework/Headers/ ApplicationServices.h:20: warning: macro '__APPLE_CC__' previously defined on command line for precomp does not match current command line definition
/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13: warning: could not use precompiled header '/System/Library/Frameworks/AppKit.framework/Headers/AppKit-gcc3.p', because:
/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13: warning: macro '__APPLE_CC__' previously defined on command line for precomp does not match current command line definition

If I'm reading this right, it looks like the precompiled headers for Cocoa, Foundation, ApplicationServices, CoreServices, and AppKit are all hosed.

Can anybody tell me what I did wrong, and how do I fix this mess? Isn't there a nice, neat command for recompiling the headers, and if so, where do I find it?


--David http://skipjack.bluecrab.org/~dwood

"Quite frankly, I'm against people who give vent to their loquacity by extraneous bombastic circumlocution."
-Monty Python, episode 13
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Prev by Date: Re: Can't modify existing user interface
  • Next by Date: Cocoa's erasing the contents of my window.
  • Previous by thread: size of NSData and NSString
  • Next by thread: Re: Precompiled header woes
  • Index(es):
    • Date
    • Thread