On Oct 30, 2007, at 11:51 AM, Steve Mills wrote: I'm making sure all our projects build in Xcode 3.0. One file in one project is complaining that it can't find an #include file, but *only* when building for ppc. The project does not have architecture-specific project or target settings. The Header Search Paths entry in Project Settings is the same in our Debug and Release configs. The target does not override this or any settings.
Any ideas? It finds the file just fine in Xcode 2.x.
Two ways to gather more data:
1) Add -v to the Other C Flags build setting and rebuild the file that can't find the #include. Copy the build transcript and save it in a new text file. Then switch Active Architecture to Intel and rebuild. Compare the two transcripts. If the compiler's search paths are different or missing, you'll see why.
2) Select the file, set Active Architecture to i386, and preprocess. Save As... on the preprocessed file. Then switch Active Architecture to ppc and preprocess again. Compare the two files and see whether the #included file was defined out in some way or place.
The only things that come to mind are:
- the source conditionally #includes the file based on architecture - the source conditionally defines the #included file's include guard based on architecture - the header is in an architecture-specific path that's not being found by the ppc side (least likely)
Chris |