• 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
Re: No such file error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No such file error?


  • Subject: Re: No such file error?
  • From: Eric Albert <email@hidden>
  • Date: Wed, 23 Nov 2005 19:17:00 -0800

On Nov 23, 2005, at 7:09 PM, Jeff Heyob wrote:

I'm trying to import my first CodeWarrior project into Xcode and using Xcode2.2 on OSX 10.4.2
After several failures, I restarted by importing my old project into Xcode again. My prefix file begins with the following include:


#include <CarbonCore/MacTypes.h>

When I build the project, the precompile of my prefix file generates this error:

error: CarbonCore/MacTypes.h: No such file or directory

I can execute a quick open on <CarbonCore/MacTypes.h> so I believe that the file does exists and I don't understand the error. any assistance to understand and solve this problem would be appreciated.

CarbonCore is a subframework of CoreServices. When you use framework- style includes, by default the compiler only allows you to directly reference headers in top-level frameworks.


In other words, change this to
#include <CoreServices/CoreServices.h>
and you'll be all set. Better yet, if this is a Carbon app, use
#include <Carbon/Carbon.h>
in your prefix file and you can remove any other references to Carbon, CoreServices, or CarbonCore headers in that file because that one #include will include all of them.


Hope this helps,
Eric

_______________________________________________
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


  • Follow-Ups:
    • Re: No such file error?
      • From: "Elron A. Yellin" <email@hidden>
    • Re: No such file error?
      • From: Jeff Heyob <email@hidden>
    • Re: No such file error?
      • From: Jeff Heyob <email@hidden>
References: 
 >No such file error? (From: Jeff Heyob <email@hidden>)

  • Prev by Date: No such file error?
  • Next by Date: Re: No such file error?
  • Previous by thread: No such file error?
  • Next by thread: Re: No such file error?
  • Index(es):
    • Date
    • Thread