Question (again) about precompiled header files
Question (again) about precompiled header files
- Subject: Question (again) about precompiled header files
- From: Henri Asseily <email@hidden>
- Date: Fri, 6 Oct 2006 11:25:13 -0700
Hello all,
I asked this question a few weeks ago but never got a response, so
I'm trying my luck again:
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