• 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
Disabling use of precompiled headers for a specific file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Disabling use of precompiled headers for a specific file


  • Subject: Disabling use of precompiled headers for a specific file
  • From: Henri Asseily <email@hidden>
  • Date: Tue, 12 Sep 2006 09:54:49 +0200

Hello, and I apologize in advance if this has been answered before.

I have a relatively large codebase, which has within it some externally imported files that I want to compile into the codebase.
Unfortunately, one of those files, let's call it xxx.c, has a related headers file xxx.h that defines a structure that's already defined in one of the Carbon headers that the project uses. For a number of reasons, I cannot modify xxx.c/h to fix that relatively trivial problem.
xxx.c does not use Carbon at all, and if compiled alone, works fine. However, since xcode precompiles the headers, it finds a conflict in the headers and throws an error.
So my question is: How can I specify for a specific .c file only certain headers and not the full precompiled header file?


I know that I can compile the externally imported files into their own static library target and then make that a prerequisite for the main target, but it's unwieldy.
I also tried an object file target for only xxx.c, but that didn't work, probably because I don't know how to use the object file targets.
I would much prefer a way to specify for xxx.c to only use certain headers and not the precompiled header file. Is that possible?


Thanks in advance,

Henri

_______________________________________________
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


  • Prev by Date: InfoPlist.strings and the Preproccesor
  • Next by Date: Re: InfoPlist.strings and the Preproccesor
  • Previous by thread: Re: InfoPlist.strings and the Preproccesor
  • Next by thread: Link errors linking against 10.3.9 SDK
  • Index(es):
    • Date
    • Thread