PDA

View Full Version : Stupid xcode question: How do I turn off precompiled headers?


SourceIT
2008.08.28, 04:32 PM
I am porting a pocketpc done in c/c++ code. When I compile it, I get about 2000 errors like "error expected unqualified-id before '@' token".
According to google, this is due to the precompilation getting confused with c/c++ and objective c headers.

One solution is to turn off precompiled headers. I have turned off everything that looks like a precompilation option but I still get the errors. So, how do I turn off precompilation properly?

Regards

Sean

ThemsAllTook
2008.08.28, 05:51 PM
Get info on your target, and set GCC_PREFIX_HEADER to an empty string.

SourceIT
2008.08.30, 04:53 PM
Thanks, I see if that helps.