• 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
Re: Sudden problems with linking my project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sudden problems with linking my project


  • Subject: Re: Sudden problems with linking my project
  • From: Andrew Thompson <email@hidden>
  • Date: Tue, 8 Jul 2003 20:58:23 -0400

On Tuesday, Jul 8, 2003, at 19:00 America/New_York, Nick Zitzmann wrote:
1. Create a header prefix file and include all of the headers used by the project in that file.

The standard contents of this file is

#import <Cocoa/Cocoa.h>

Which means you get all of the system headers precompiled. No reason you couldn't include all of your project headers too, but probably only worth it in larger projects (trading off time saved against how often the precompiled headers need to be rebuilt).

2. Compile it with GCC 3.3 as a header file. You must turn on debugging symbols if you're using them in the project, and you must also include all of the -D defines used when compiling the project, or else GCC won't use the headers.

Yes. This was giving me trouble last night.

You probably need at least

OTHER_CLFAGS = -fconstant-cfstrings

In addition to anything you've added to your project for yourself

3. Finally, you have to include the prefix file in all of your source files, replacing all existing includes, or else GCC won't use the headers.

No need to do that. Just see

Targets -> Your Target -> Settings -> Simple View -> GCC Compiler Settings

The enter the name of the Prefix Header in box provided. Leave the "Precompile" checkbox off as it refers to the older style.

AndyT (lordpixel - the cat who walks through walls)
A little bigger on the inside

(see you later space cowboy ...)
_______________________________________________
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.

References: 
 >Re: Sudden problems with linking my project (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Finding the executable path in a foundation tool.
  • Next by Date: Re: accessing files larger than 2GB
  • Previous by thread: Re: Sudden problems with linking my project
  • Next by thread: gcc 3.3, Precompiled Headers and Project Builder
  • Index(es):
    • Date
    • Thread