Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: #include file not found for ppc, found for Intel




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
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >#include file not found for ppc, found for Intel (From: Steve Mills <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.